Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gridview
Message
De
23/02/2006 15:29:54
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Gridview
Divers
Thread ID:
01098662
Message ID:
01098662
Vues:
54
In VS2003, I was able to create a Asp.Net Webform with a data grid that contained 3 columns: Employee ID, Employee Name, Select Link. The first column of my grid was marked as Not visible because I didn't want to display the Employee ID field. Also, when the user clicked the Select link in column3, I would capture the row and column1 as such: e.Item.Cells[0].Text.Trim()

This would allow me to get the employee ID field when the Select was clicked but the employee ID field was never visible.


Now I am using VS2005 and C# to create the same webform in Asp.net. However, the only way to capture the employee ID field in the GridView is to make the Employee ID column visible. Otherwise, if I mark the Employee ID column as not visible, a blank value is returned.

How can I have the Employee ID column if a GridView Not visible, but capture it's value?

Thanks,

Jerry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform