Working with a DataGridView with the SelectionMode set to RowHeaderSelect.
I want the user to be able to multiselect cells but only within the same column. If they try to select values outside the original column, they won't select.
I thought one way to do this might be within the SelectionChanged event, unselecting cells that aren't in the same column...
I tried this, but it didn't really work...
Is there a simple way to only allow multiselect within the same column?
I want the user to be able to multiselect cells but only within the same column. If they try to select values outside the original column, they won't select.
I thought one way to do this might be within the SelectionChanged event, unselecting cells that aren't in the same column...
I tried this, but it didn't really work...
.net Code:
For Each cell In CueDGV.SelectedCells If cell.columnindex <> CueDGV.CurrentCell.ColumnIndex Then CueDGV.CurrentCell.Selected = False End If Next