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

Remove default selection in RadGridView

2 Answers 182 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Madhan
Top achievements
Rank 1
Madhan asked on 06 Mar 2012, 06:25 AM
Hi,

Is there a way to remove/restrict the default selection (first row) of the RadGridview?

Note:After pressing the row, it should display as selected.

Thanks,

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 06 Mar 2012, 08:50 AM
Hello,

 If you set the IsSynchronizedWithCurrentItem property of the RadGridView to "false" there should be not a default selection. 

All the best,
Didie
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Gord
Top achievements
Rank 1
answered on 21 Apr 2016, 06:14 PM

I know this is an older post, but in case anyone comes across this, and cannot turn off "IsSynchronizedWithCurrentItem" because the functionality is required for other things within the grid, there is another workaround I have discovered:

grid.Loaded += new RoutedEventHandler((sender, e) => { (sender as RadGridView).CurrentItem = null; });

 

Tags
GridView
Asked by
Madhan
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Gord
Top achievements
Rank 1
Share this question
or