Re-ordering bound columns in DataGridView

Feb 17 2006 2:21 AM
I am new to C# and .NET. I have a DataGridView that is bound to a structure with public properties. All of the data appears in the view but the columns are not in the correct order. The columns are currently: Mode1, Day, Mode3, Mode2, Time but need to be displayed: Day, Time, Mode1, Mode2, Mode3. I tried to change the DisplayIndex for all of the columns but they continue to be displayed in the original order on the DataGridView. I must say that I couldn't have come this far on the project without the help of C#Corner so THANK YOU! Any help would be greatly appreciated.

Answers (1)