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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Child Table Iteration

Thread ID:





110356 Jul 31,2013 06:53 AM UTC Aug 1,2013 12:57 PM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Asked On July 31, 2013 06:53 AM UTC

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 

Hariharan J V [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon