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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement