Home › Forums › WinForms controls › Xceed Grid for WinForms › Handling double click event for a Xceed.Grid.DetailGrid › Reply To: Handling double click event for a Xceed.Grid.DetailGrid
The “gridControl1.CurrentRow” can be a reference to a Master Grid’s row as well as a Detail Grid’s row. It does not matter whether it is a Master Grid’s row or a Detail Grid’s row.
You can directly reference it:
gridControl1.CurrentRow.BackColor = Color.Red
Or cast it as a Xceed.Grid.DataRow and get the value of a Cell:
Private strValue As String = DirectCast(gridControl1.CurrentRow, Xceed.Grid.DataRow).Cells(0).Value.ToString()
Imported from legacy forums. Posted by CharlesB (had 4036 views)