I have been tearing my hair out trying to figure out how to get a grid to show grouped items on startup. That is, when the grid initiallly displays, it's automatically in group mode. The group panel is not visible, and the user cannot change the grid groupings.
No matter what I tried I couldn't make it work. Then, I noticed I had a line like:
myGrid.MasterGridView.AutoGenerateColumns = false;
If I remove this line -- voila, the startup mode of the grid is in group mode. It works as advertised.
Now, this is causing me other problems; namely, columns that I don't want to appear show up in the grid. So how can I get these two to happily coexist?
BTW, why can't you select AutoGenerateColumns in the designer? Seems to be missing.
No matter what I tried I couldn't make it work. Then, I noticed I had a line like:
myGrid.MasterGridView.AutoGenerateColumns = false;
If I remove this line -- voila, the startup mode of the grid is in group mode. It works as advertised.
Now, this is causing me other problems; namely, columns that I don't want to appear show up in the grid. So how can I get these two to happily coexist?
BTW, why can't you select AutoGenerateColumns in the designer? Seems to be missing.