Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > how can i select all checkboxes by clicking a button or checking another checkbox
 

how can i select all checkboxes by clicking a button or checking another checkbox

hi,

i hv this DGV with checkboxcolumn inside it. How can i check(select) all the rows by just clicking a button or checking a checkbox. tq.
shahrul  Friday, March 03, 2006 4:42 AM
finally, there is way to do this.
shahrul  Thursday, March 09, 2006 10:28 AM
use a foreach loop to iterate thru the dgv rows. then set .Selected = true;
icemart525  Friday, March 03, 2006 5:37 AM
it's not working man...when set .selected = true, instead of checking all checkboxes, it will select all rows but not the checkboxes.

2nd prob: how to uncheck those checkboxes that have been ticked after a button click event. Similar to uncheck all checkboxes.
shahrul  Monday, March 06, 2006 9:46 AM
finally, there is way to do this.
shahrul  Thursday, March 09, 2006 10:28 AM

You can use google to search for other answers

Custom Search

More Threads

• BindingSource +CurrentItemChanged question
• DataGridViewComboBoxCell fill but at last with zero items
• List box...
• How to save DataGridView to temp dataset to allow roll back until saved
• How to deal with Apostrophe in access + C#
• how to make datagridview particular colum formatted? (ex, 1,23,25.00)
• bound data to dataGridView
• how to Keep Datasets and Databases in sync
• Keypress
• How do i update the datasource, refresh the grid, and move to the newly created line in the GUI?