Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set and get checkbox value in GridView

Status
Not open for further replies.

neualex

Programmer
Feb 26, 2008
53
US
Hey guys...I am having a hard time figuring this out.
I need to display a list of books in a GridView and allow the user to download them.
I got everything working except the checkbox thing...I can display it on a respective column, but how can I set the value the checkbox holds, since I need to get this value from JavaScript avoiding a round trip to the web server.

I like to loop the table and check if the checkbox is checked, if so, then I get the corresponding value...but I found no way how to set this value from code behind :(

Help is appreciated.
...Alex
 
look at RowDatabound for the gridview, then search for the checkbox.
 
Do you have any code sample for this or a link?
I'd appreciate it.

...Alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top