AD
Administrator
Syncfusion Team
March 25, 2008 10:50 PM UTC
HiRohit,
Thank you for your patience.
If your intention is to highlight the record in green color, whose "deleted" column contains value "Y"(even though "Deleted column value change through coding), Please refer the code below.
this.gridGroupingControl1.TableOptions.SelectionBackColor = Color.Green;
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Element el = e.TableCellIdentity.DisplayElement;
if (el.Kind == DisplayElementKind.Record)
{
Record rec = el.GetRecord();
if (rec.GetValue("Deleted").Equals('Y'))
{
rec.SetSelected(true);
}
}
}
Please let me know if this helps.
Regards,
Srirajan