Hi Mohan,
Thanks for using Syncfusion products.
We are sorry for inconvenience caused.
As per our current implementation, it is not possible to
iterate child table rows from the GridGroupingControl. However we can iterate
childtable rows using the QueryCellInfo Event. Please refer the below code
snippets.
[Default.aspx.cs]
protected void
GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if
(e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell)
{
if
(e.TableCellIdentity.Column.MappingName == "Employee
ID")
{
if(e.TableCellIdentity.DisplayElement.ParentRecord.GetValue("Employee ID").ToString()=="5")
e.Style.BackColor = System.Drawing.Color.AliceBlue;
else
e.Style.BackColor = System.Drawing.Color.Cornsilk;
}
}
}
For your convenience, we have prepared a simple sample to
demonstrate this and the same can be downloaded from the below link.
Sample: querycellinfo.zip
Please let us know if you have any other concerns.
Regards,
Hariharan J.V.