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

Row Selection Issues Q2 2007

1 Answer 160 Views
GridView
This is a migrated thread and some comments may be shown as answers.
maydaytx
Top achievements
Rank 1
maydaytx asked on 21 Sep 2007, 03:56 PM
The new grid automatically selects the first row that is bound to it. I want to be able to load the grid without it initially selecting the first row. I also want to be able to deselect a row using ctrl + click.  Is there a way to perform either of these actions?  If not, can I request that they be included in the next service pack?

By the way, thanks for your speedy responses in previous threads.

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 21 Sep 2007, 04:38 PM
Hi maydaytx,

RadGridView's current row is synchronized with the selected row in corresponding CurrencyManager. This is the default behavior of MS DataGridView. If you wish to override this behavior and hide the current row place this code directly after binding your grid:

this.radGridView1.CurrentRow = null;

When the grid is in multiple row selection mode (the MultiSelect property of RadGridView is set to true)  the  Ctrl + click key combination toggles the selected state of current row.

I hope this information was helpful.  Don't hesitate to contact us if you need further assistance.

Kind regards,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
maydaytx
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or