ASP.NET datagrid and checkbox tutorial
This tutorial will demonstrate how to detect which checkboxes in a datagrid have been selected on the page postback event. Since we are saving the checkbox state in a database, we might as well look at how to check appropriate checkboxes on the page load event as well.
The general concept is that we have a datagrid that displays a list of people in a database. We also have a list of organizations. What we want to do is to check the people in the datagrid that we want to associate with the current organization. The datagrid on the previous page represents this metaphor.
Click on the next link below to view the code behind file for the aspx page.
back
|
next
|
about