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.
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.
Thanks Mike! I'll try your suggestion(i think it should do the work).
Best Regards