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

Show the relation field for two tables in a gridgroupingcontrol

Hello. I have two tables in a gridgroupingcontrol, linked by the field "ID". In the child grids, the column "ID" is hidden. There is a property or a way to show it? thank you.

3 Replies

AD Administrator Syncfusion Team June 15, 2005 09:10 AM

Did you try adding the ID column to the child''s VisibleColumns collection? GridTableDescriptor td = groupingGrid.TableDescriptor.Relations["ParentToChild"].ChildTableDescriptor; td.VisibleColumns.Add("ID");


JG Julien Goldberg June 15, 2005 10:19 AM

I''v tried. Seems to do nothing. Thank you >Did you try adding the ID column to the child''s VisibleColumns collection? > > >GridTableDescriptor td = groupingGrid.TableDescriptor.Relations["ParentToChild"].ChildTableDescriptor; >td.VisibleColumns.Add("ID"); >


AD Administrator Syncfusion Team June 15, 2005 11:17 AM

Try adding it back into the Columns collection. This code worked for me. GridTableDescriptor td = gridGroupingControl1.TableDescriptor.Relations["ParentToChild"].ChildTableDescriptor; td.Columns.Add("ID");

Loader.
Live Chat Icon For mobile
Up arrow icon