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

GridDataControl with nested child collection

Hi,

I have GridDataControl with nested child grid, the child grid has

3 columns which the parent GridDataControl have too.

I want to hice the Grid Child's Headers and use the parent headers

for displaying the child data.

Example:

Parent Grid
----------------------------------------------
ID | Name | Explicit Name | Comment | Format |
----------------------------------------------

| Name | Explicit Name | Comment | <- I'll hide headers
| x | yyyyyyyyyyyyy | xxxxxxx | <- user see data only
| x | yyyyyyyyyyyyy | xxxxxxx | <- under the parent col
| x | yyyyyyyyyyyyy | xxxxxxx | <- headers.
| x | yyyyyyyyyyyyy | xxxxxxx |


Please help me...
I neet answer as soon as possible.

Regards,
Mohammed Eid
.NET Developer



1 Reply

MA Manikandan Syncfusion Team February 17, 2011 09:07 AM UTC

Hi Mohammed,

Thanks for using Syncfusion Products.

Yes you can remove the header row of the child table by setting its height as 0. But there is no support to set the parents header to child table, if needed you can change the header text of child as parent.

Code Snippet [C#]

foreach (var Relation in this.dataGrid.Relations)
{
Relation.TableProperties.DefaultHeaderRowHeight = 0;
}

Please let us know if you have any queries.

Regards,
Manikandan J R.


Loader.
Live Chat Icon For mobile
Up arrow icon