Home Forums WinForms controls Xceed Grid for WinForms Double Click Event Reply To: Double Click Event

User (Old forums)
Post count: 23064

I found the answer at last.

‘adding event handler in form load
Dim cell As DataCell
For Each cell In mygrid.DataRowTemplate.Cells
AddHandler cell.DoubleClick, AddressOf Me.Cel_DoubleClick
Next cell

Private Sub Cel_DoubleClick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles mygrid.DoubleClick
Dim cell As Cell = CType(sender, Cell)

‘parentRow’s property can be used to access the rows value
Dim parentRow As CellRow = cell.ParentRow
End Sub

Imported from legacy forums. Posted by PETE (had 6804 views)