Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataGridView Reorder Columns
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01398182
Message ID:
01398192
Vues:
49
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform