Home Forums WinForms controls Xceed Grid for WinForms Checkbox value/state in DetailGrid Reply To: Checkbox value/state in DetailGrid

Xceed Support
Member
Post count: 5658

You have 2 possibilities here:

1- You could use the “CurrentRow” item from the gridControl1. This reference also applies inside a Detail grid.

<code>
( ( Xceed.Grid.DataRow )gridControl1.CurrentRow ).Cells[ 2 ].BackColor = Color.Green;
</code>

2- You could use the “ParentRow” reference of the e.Cell inside your ActivatingControl event.

<code>
void CellEditorManager_ActivatingControl( object sender, CellEditorEventArgs e )
{
( ( Xceed.Grid.DataRow )e.Cell.ParentRow ).Cells[ 2 ].BackColor = Color.Green;
}
</code>

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