Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGridView Reorder Columns
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01398182
Message ID:
01398192
Views:
48
http://social.msdn.microsoft.com/forums/en-US/winformsdatacontrols/thread/284a2343-8d74-4260-9ebb-11e425372d16/

> I'm trying to reorder the columns in a DataGridView. I have:
>
> grdReceive.Columns["PartId"].DisplayIndex = 0;
> grdReceive.Columns["SerialNo"].DisplayIndex = 1;
> grdReceive.Columns["Location"].DisplayIndex = 2;
> grdReceive.Columns["LocationInfo"].DisplayIndex = 3;
> grdReceive.Columns["Description"].DisplayIndex = 8;
>
> The columns actually appear as:
>
> PartNo, SerialNo, Location, Description, LocationInfo.
>
> I cannot get Description to move over one position to the right. Location is a combo column I added in code.
Previous
Reply
Map
View

Click here to load this message in the networking platform