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.
Unfortunately, activation email could not send to your email. Please try again.

Adding and removing visable colums in a GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

46055 Jul 4,2006 10:09 PM Jul 5,2006 11:12 AM Windows Forms 1
loading
Tags: GridControl
Bill Langlais
Asked On July 4, 2006 10:09 PM

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!

Administrator [Syncfusion]
Replied On July 5, 2006 11:12 AM

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

CONFIRMATION

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.

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.

;