Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
NewColumnLoadStyle property question?
posted

 Hi,

my problem is when i use NewColumnLoadStyle property for hiding the new properties ot some type binded to a grid. I want to make same behavior and for the ColumnChooser - cause it doesnt hide the added properties.

 Thanks in advance.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hm. You raise an interesting point. NewColumnLoadStyle hides the columns using the Hidden property on the column. There's a separate property on the column called ShowInColumnChooser that allows you to also hide it from the column chooser. I'm not sure if NewColumnLoadStyle should be setting the ShowInColumnChooser property also. But you can probably get the behavior you want by looping through the columns in the InitializeLayout event of the grid and setting ShowInColumnChooser to false on any column whose Hidden property is true. 

Children