Unbound checkbox column in datagrid
-
Hello, I am trying to implement a checkbox column in a datagrid that will provide the user the ability of checking certain rows that they want to perform some action on. Here is my problem. Originally, I just added a new row in my database called "Checked". This seemed to be working okay until I started trying to implement a "Select All" functionality. In order to do this, I have to loop through each row in my datatable and set the value for the "Checked" column to true. This takes forever because there are 13,000 rows in the table. My question is this: is there any way to add a column to a datagrid without having it bound to a column in the datatable? What other options are there for doing something like this? I guess I could just use the regular select functionality of the datagrid, but this requires the user to hold down control to select multiple rows. Any ideas? Thanks, Blake
-
Hello, I am trying to implement a checkbox column in a datagrid that will provide the user the ability of checking certain rows that they want to perform some action on. Here is my problem. Originally, I just added a new row in my database called "Checked". This seemed to be working okay until I started trying to implement a "Select All" functionality. In order to do this, I have to loop through each row in my datatable and set the value for the "Checked" column to true. This takes forever because there are 13,000 rows in the table. My question is this: is there any way to add a column to a datagrid without having it bound to a column in the datatable? What other options are there for doing something like this? I guess I could just use the regular select functionality of the datagrid, but this requires the user to hold down control to select multiple rows. Any ideas? Thanks, Blake
hi, Please check this datagridgirls.com. This site contain few articles which deals datagrid customization. Sure you will get solution.:-O ************************** S r e e j i t h N a i r **************************