Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gridview
Message
From
23/02/2006 15:29:54
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Gridview
Miscellaneous
Thread ID:
01098662
Message ID:
01098662
Views:
55
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
Next
Reply
Map
View

Click here to load this message in the networking platform