Click here to Skip to main content
15,891,649 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello guys.

I would like to make my gridview scrollable with one column as a ckeck box. header also contains ckeckbox.

I need fixed header and all rows must scroll. I dont need page indexing.

Please Help
thanks in advanced
Posted
Updated 9-Jun-10 21:26pm
v2

1 solution

Hello,

If you bind your grid-view to a datatable with a bit type (SQL) column then that column will be displayed as a checkbox. You can use an SP or some other coding to alter the value to true/false by updating the column on the data-table (or source).

Getting a check-box as column header might be tricky but what you may consider is a simple check-box on your form (some where near) that you can use to (un)select all rows in the bit variable/column and consequently on the gridview depending on its check status.

A simple loop on the checkbox checkchanged property would probably be the easiest way to implement it.

Good luck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900