So you have a checkbox column in the DataGridView and when you click a button you want certain rows to be checked?
One way you could do this is to loop through all of the rows in the DataGridview and check the group. If it matches the desired group, check the checkbox.
Another option is to update the underlying DataSet.
Is the checkbox column also in the Dataset?
Hope this helps.
www.insteptech.com ;
msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!