Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hold value in an invisible grid column
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00762521
Message ID:
00762569
Vues:
16
This message has been marked as the solution to the initial question of the thread.
For WebForms, take a look at DataKeys property in the DataGrid

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolsbasedatalistclassdatakeystopic.asp

I wish there was an equivalent for WinForms :(

>I have data in a recordset from a VFP table and display that data in an ASP.NET grid. I have a primary key for the table and need to keep track of it, but don't want to display on the screen. I setup the grid to have an extra column named "key" which holds the key value for the record. However, upon saving, I have values for all visible columns, but the invisible "key" column shows no value (the control does exist). If I change the column to visible, then the value is there the next time I populate the grid.
>
>How do I keep track of database columns for a grid without displaying them?
Hector Correa
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform