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

Xceed Support
Member
Post count: 5658

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:

<code>
gridControl1.CurrentRow.BackColor = Color.Red
</code>

Or cast it as a Xceed.Grid.DataRow and get the value of a Cell:

<code>
Private strValue As String = DirectCast(gridControl1.CurrentRow, Xceed.Grid.DataRow).Cells(0).Value.ToString()
</code>

Imported from legacy forums. Posted by CharlesB (had 4036 views)