hi
my form having only one datagridview control with 5 column
the code is here
Public Class Form2
Private Sub DataGridView1_CellValidating(ByVal sender As Object,
ByVal e As System.Windows.Forms.DataGridViewCellValidatingEventArgs)
Handles DataGridView1.CellValidating
If e.ColumnIndex = 1 Then
DataGridView1.CurrentCell = New DataGridViewCell(1, 4)
End If
End Sub
End Class
I want change current cell to a prticular cell
if i give this command:
myGrid.CurrentCell = New DataGridViewCell(1, 3)
i got error message :
New cannot be used a class that is declared mustinherit
i change the command like this:
myGrid.CurrentCell = DataGridViewCell(1, 3)
now i get this error message:
DataGridViewCell is a type and cannot be used as an expression
if i change the command like this:
myGrid.CurrentCell = Me.myGrid(1, 3)
iam getting this error:
An unhandled exception of type 'System.StackOverflowException' occurred in xxxx.exe
help me to change my current cell.
thomas