Home Forums WinForms controls Xceed Grid for WinForms row formating for Reply To: row formating for

Xceed Support
Post count: 5658

You can directly reference the cell value in the code. Here is a little snippet that shows how you could proceed:

foreach( Xceed.Grid.DataRow row in gridControl1.DataRows )
if( row.Cells[ “Country” ].Value.ToString() == “Canada” )
row.BackColor = Color.Red;

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