I am trying to implement a screen similar to a windows listbox multiple-item selection (ctrl or shift click). On windows, I can select non-continuous items by holding down the control key.
On my ASP.NET page, I have a datagrid with a checkbox in a column that allows me to select multiple items. Right now, I can get everything to work, but in order to start a new selection, I have to de-select everything that was previously selected. I know I can clear the other checkboxes when the user checks off something else. If I do this, is there anyway to detect a control click or a shift click so that I can determine whether or not to clear previously checked items or if I should allow multiple items to be selected.
I don't know if this is possible, but I'd just thought I'd ask. If this is not possible, what would be the best way to implement a multiple item selection in a datagrid?