Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to select/deselect row by clicking it and prevent a selection of other rows from being cleared

$
0
0

This example demonstrates how to create a helper class that allows you to select rows as if the CTRL button is pressed. I.e. rows selection is not cleared when a particular row is clicked. Only a clicked row's state is changed.

Question Comments

Added By: Brian Perrin at: 12/3/2014 8:27:25 AM    

Outstanding!  Select "MultiSelectionHelper.cs" in the first combo below, see bottom section.  CalcHitInfo(), InvertRowSelection(), GetMouseArgs(e).Handled = true.  Thank you!

Added By: Jerther at: 12/23/2015 7:06:54 AM    

I'd like to add that with v15, i've been able to obtain the desired result with only the RowCellCkick event and the following:

gridView.InvertRowSelection(e.RowHandle);  
e.Handled = true;

Added By: Nadezhda (DevExpress Support) at: 12/24/2015 1:52:01 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: How to select row by clicking. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.


Viewing all articles
Browse latest Browse all 7205

Trending Articles