DataGridView Column Order

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?
 
J

Justin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top