DataGridView Column Order

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I used the VS2005 DataGridView designer to set the order of the columns.
When I first compile and run, everything is just fine. When I stop, the
columns are reordered. Everytime I use the designer to order the columns the
same thing happens ... the changes won't stick.
Datagridview.columns.displayorder isn't working for me either.

This is killing me ... anyone have any suggestions?
 
I've ran into this problem many times too, and I finally figured out a way around it. This is what I do: Order the columns the way you want them. SAVE the file (Design file), (do not build or debug) then close the design file. Now you can build, and the changes stick. The problem is if you build with the design view open, so try not to do this.

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
Back
Top