-
Events on grids
Hi, (I am newbie in VBasic)
How I can handle events on data grids?,
example:
If I have an single textbox and I can do this
AddHandler TextBox1.KeyPress, AddressOf keypressed
...
...
Sub keypressed(ByVal o As [Object], ByVal e As KeyPressEventArgs)
If e.KeyChar = Microsoft.VisualBasic.ChrW(13) Then
Me.SelectNextControl(o, True, True, False, True)
e.Handled = True
End If
End Sub
this works fine in textbox, but I dont know how to do this when the textbox is cointained in datagrid
System.Windows.Forms.DataGridTextBoxColumn
any ideas?
thanks