We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Child Table Iteration

i have created a grid grouping control. it contains parent table and child table
 iam using below code to iterate the parent table rows in grid grouping control
foreach(TableRow row in this.GridGroupingControl1.TopLevelTable.Rows ) 
Similarly how to iterate child table rows and how to get controls in a child table 

1 Reply

HJ Hariharan J V Syncfusion Team August 1, 2013 12:57 PM UTC

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.



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;


                            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.



Hariharan J.V.

Live Chat Icon For mobile
Up arrow icon