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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set a checkbox to checked when it is in a templatecolumn in a datagrid

Status
Not open for further replies.

KidHoss

Programmer
May 22, 2000
27
US
I get the current state of a checkbox item in a templatecolumn in a datagrid by creating a checkbox item and do findcontrol (dgItem.FindControl("chkExportItemSelected"))

After reading stored data from a database I want to loop through the datagrid and set the checkboxes as related to the data from the database.

My question is how do I set the checked state of the checkbox as I loop through the datagrid?
 
Looks to me as ASP.NET question.
Go to the right forum: forum855
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top