I want to have checkboxes in front of each row of my datagrid. But afterwrds I need to be able to check whether which has been checked and which not. How can I accomplish this?
Place the checkbox inside of a template column. You can check which ones are checked in the ItemDataBound event or you can loop throught the rows in the grid and check. Just get a refernect to the checkbox by using FindControl() then check the checked property.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.