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

Xceed Support
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.

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

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

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

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