This is a migrated thread and some comments may be shown as answers.

RadGridView Multiple selection by holding the left mouse button

1 Answer 141 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 24 Feb 2015, 06:28 AM
Hi,

I set SelectionMode = Extended;

If I select a new item of the grid and try to select multiple rows holding the left mouse button everything working as expected (grid select multiple rows). 

But If I select selected row of the grid and try to select multiple rows holding the left mouse button the new selected rows won't be selected. 
How can I implement this behavior?

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 24 Feb 2015, 12:33 PM
Hi,

You can try to clear the selected items of the grid in PreviewMouseLeftButtonDown event. Please check the following code snippet for a reference:
private void clubsGrid_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            this.radGridView1.SelectedItems.Clear();
        }


Regards,
Yoan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Paul
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or