views:

28

answers:

1

Hi

Ok, the first column in my datagridview is a checkbox. I have 'multiselect' set to true and that does indeed work. However, a user is only allowed to check one checkbox at a time, if they select another the original unchecks itself, how do I stop that? I need a user to be able to select, say 3 out of 5 rows using the checkbox so that they can carry out a group action.

Thanks, R.

A: 

A DataGridView will by default allow multiple checkboxes to be checked at the same time. Just to make sure I just created a DGV and added one checkbox column and 2 textbox columns to it and I could check multiple rows.

I think you might accidently have done something that makes this happen? Maybe try removing the DGV and creating a new one (or if that's a lot of work, create a new one next to it and then compare the settings for both of them and do a search for the old one to make sure it's not changed dynamically somewhere).

ho1
Thank you, yes I appear to have 'checked' something, what I couldn't find so I rebuilt the whole thing and it works as expected now. You wouldn't know how I can change the 'selected' color would you? Thanks for your help.
flavour404
Fixed that other problem as well. Now if I can just get the gridlines to display and the vertical scroll bar to be there all the time i'm done... Never enough hours.
flavour404