Home Forums WinForms controls Xceed Grid for WinForms the cell event ? Reply To: the cell event ?

User (Old forums)
Member
Post count: 23064

1. If you want to catch key events, you will have to catch them from GridControl, and not from Cell.
<code>AddHandler GridControl1.KeyDown, AddressOf Me.GridControl1_KeyDown
Private Sub GridControl1_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
Dim cell As Xceed.Grid.Cell = GridControl1.CurrentCell
‘ do something with cell
End Sub</code>
2. Add this before Me.GridControl1.Select():
<code>Me.GridControl1.SelectedRows.Clear()
Me.GridControl1.SelectedRows.Add(Me.GridControl1.CurrentRow)</code>

Imported from legacy forums. Posted by Tommy (had 198 views)