Groups | Blog | Home
all groups > asp.net > february 2004 >

asp.net : CheckBox in DataGrid


Machi
2/18/2004 11:16:05 PM
Let say i select rows of records with 4 columns from Database and want to display the data in DataGrid (ASP.NEt Server Control) with one column which must be displayed in CheckBox layout. For the column (which contains checkbox), when i click the CheckBox in the Header of DataGrid, all the rows (for column which contains Checkboxes) must be checked. When i uncheck the checkbox in Header of DataGrid, all the rows of that column must be unchecked, or when i try to manually check all the rows of records, the checkbox in Datagrid must be checked too.
Barry Forrest
2/19/2004 7:11:07 AM
Machi
Take a look at this article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchTopQuestionsAboutASPNETDataGridServerControl.as

----- Machi wrote: ----

Let say i select rows of records with 4 columns from Database and want to display the data in DataGrid (ASP.NEt Server Control) with one column which must be displayed in CheckBox layout. For the column (which contains checkbox), when i click the CheckBox in the Header of DataGrid, all the rows (for column which contains Checkboxes) must be checked. When i uncheck the checkbox in Header of DataGrid, all the rows of that column must be unchecked, or when i try to manually check all the rows of records, the checkbox in Datagrid must be checked too.
AddThis Social Bookmark Button