Hi But i want this event on my click based, where i can loop all rows and get specific row, because this event only fired when Syncfusion.Windows.Forms.Grid.Grouping acitve
.
on click event i am not able to grap
"e.TableCellIdentity.DisplayElement"
>Hi Ashok,
You can try the code like this in the QueryCellStyleInfo event of the GridGroupingControl, to color any specific record(row) in grid.
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if(e.TableCellIdentity.DisplayElement.Kind == DisplayElementKind.Record)
{
Element el = e.TableCellIdentity.DisplayElement;
Record rec = el.ParentRecord;
int recordIndex = this.gridGroupingControl1.Table.Records.IndexOf( rec );
if( recordIndex == 3 )
e.Style.BackColor = Color.Pink;
}
}
Let us know if you have any further queries.
Thanks for using Syncfusion Products.
Regards,
Rajagopal