Click here to Skip to main content
15,886,664 members
Articles / Web Development / ASP.NET

How to get Hidden Column Value in GridView

Rate me:
Please Sign up or sign in to vote.
4.92/5 (35 votes)
12 May 2010CPOL2 min read 283K   21  
Suppose I want to display Address details in GridView but don't want to display AddressId then I will hide column that displays AddressId. GridView has CheckBox also to select Addresses. Now at runtime on click of button I want to get AddressId of all selected Addresses in that case if I use...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
18 Jun 2010wouter vegter
Alternative way for 1B, this one is way faster :) : protected void btnSelect_Click(object sender, EventArgs e) { Button btn = (Button)sender; DataControlFieldCell dfc = (DataControlFieldCell)btn.Parent; GridViewRow gvr =...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions