Question on hiding columns in a Nested Hierachal Grid View.
I have two Tables in a DataSet, with a DataRelation between them. The two tables are linked together by the two columns( keys ).
I would like to hide the display of the two columns in the nested Grid.
So in my FieldLayoutInitialized event, I loop through my fields in the fieldlayout, and set the Visibility = Visibility.Hidden.
This hides the columns from view, however it does not shift the remainin columns to the right. It just leave a big open area where the two columns where before. I even tried setting the CellWidth to 0, but I still have the space.
Am I doing something wrong ? If so, what would be the best way to hid the two key column on the nested view ?
Thanks
DK
Awesome ..
That works
Thank You.
Try using Visibility = Visibility.Collapsed