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

Xceed Support
Member
Post count: 5658

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

e.g.,
<code>
foreach( Xceed.Grid.DataRow row in gridControl1.DataRows )
{
if( row.Cells[ “Country” ].Value.ToString() == “Canada” )
{
row.BackColor = Color.Red;
}
}
</code>

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