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?
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?