Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Datagrid View column ordering bug.
 

Datagrid View column ordering bug.

I have a DataGridView control on a windows form and I have found a bug that is really irritating me. Included in the DataGridView are a couple of non-databound fields. 1 text box and 1 Button. I have the columns in the grid ordered in a very specific order. This ordering gets wiped out though if I run theprogram in debug with the Form designer open to that form!

Is there a fix for this bug out there, and failing that is there a way that I can order DataGridView columns at run time so that I wont care what it looks like at desing time ?

Any help is appreciated.

Sabrecat  Thursday, December 13, 2007 5:59 PM

YES, you can set the DisplayIndex property which changes the column display order at runtime.

Zhi-Xin Ye  Monday, December 17, 2007 11:04 AM

YES, you can set the DisplayIndex property which changes the column display order at runtime.

Zhi-Xin Ye  Monday, December 17, 2007 11:04 AM

You can use google to search for other answers

Custom Search

More Threads

• Good way to expose properties of members in the property grid?
• Dock Padding
• docking during design
• Table Control
• Detecting parent of component at design time
• TabControl grayed out in Toolbox
• Retrieving the ExtenderProvider from within the EditValue method of a UITypeEditor
• VS 2005 - MyApplication_UnhandledException event not firing
• How can i get the serial number of Hard disk or mainboard
• TreeNodes with checkboxes