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.

Why is FieldChooser not updated while hiding the columns using HideCols property?

Problem:

The FieldChooser does not update the column values when some of the columns are hidden by using the HideCols property.

 

Figure 1: The columns hidden by using HideCols property

In the above image, the column[Product Name] is hidden by using the HideCols property, but was not updated in the FieldChooser.

 

Figure 2: While hiding the columns using VisibleColumns collection

The above image displays the column[Product Name] hidden through the VisibleColumns collection and updated in the FieldChooser.

 

Solution:

By default, GridGroupingControl uses VisibleColumns collection to hide the columns. To hide the columns in the GridGroupingControl, you can remove the columns from the VisibleColumns collection, since the FieldChooser of the GridGroupingControl works based on the VisibleColumns collection.  The TableModel.HideCols property does not remove the columns from the VisibleColumns collection, therefore the visibility of the columns is not updated in the FieldChooser.

 

 

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
5462 10/14/2015 10/14/2015 Windows Forms GridGroupingControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.