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
close icon

Adding and removing visable colums in a GridGroupingControl

I have a GridGroupingControl attached to a dataset with a heirachy of five tables. I have a dialog that allows a user to select which colums they want to have visable at all five levels. How do I walk through the five sets of TableDescriptors so I can add or remove the apropriate VisableColumns? Thanks!

1 Reply

AD Administrator Syncfusion Team July 5, 2006 03:12 PM UTC

Hi Bill, This can be achieved by using the GetTableDescriptor method. The required visible columns can be added or removed by using the corresponding TableDescriptor. The following is the code snippet >>>>>>>>>>>>>>>>>>>>>>>> GridTableDescriptor gd = this.gridGroupingControl1.GetTableDescriptor("MyChildTable"); gd.VisibleColumns.Remove("childID"); >>>>>>>>>>>>>>>>>>>>>>>> Best regards, Madhan

Loader.
Live Chat Icon For mobile
Up arrow icon