Home Forums WinForms controls Xceed Grid for WinForms Double click row event problem Reply To: Double click row event problem

User (Old forums)
Member
Post count: 23064

You can catch the DoubleClick-event of each Cell separately. To catch the event of all the cells of all the DataRows, use this code:<code>Dim cell As Xceed.Grid.Cell
For Each cell In myGrid.DataRowTemplate.Cells
AddHandler cell.DoubleClick, AddressOf Me.Cell_DoubleClick
Next
Private Sub Cell_DoubleClick(ByVal sender As Object, ByVal e As EventArgs)
Dim cell As Xceed.Grid.Cell = sender
Dim row As Xceed.Grid.DataRow = cell.ParentRow
End Sub</code>(PS: I’m a C# programmer)

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