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

Auto-selecting 1st RadGridView Row

4 Answers 142 Views
GridView
This is a migrated thread and some comments may be shown as answers.
jay
Top achievements
Rank 1
jay asked on 25 Jul 2010, 02:21 PM
Hi,
I have a RadGridView-RadDataPager pair bound to a domaindatasource.  
When i go to next page using the pager, the next load of records is fetched and the first record is selected automatically, as expected.
When i go back to the previous page, however, no record is selected. How do i force the RadGridView
to auto select the 1st row each time the pageindex changes (forward or backward) ?
BTW, the RadGridView does not have a .Row property I can set. I am trying out Q2 2010 of the RadControls.

Any thoughts?

Thanks

4 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 29 Jul 2010, 01:31 PM
Hi jay,

Setting IsSynchronizedWithCurrentItem to true will instruct the grid to select the first row automatically.  

Greetings,

Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Daniel
Top achievements
Rank 1
answered on 08 Sep 2010, 03:38 PM
Hi Friend

I am starting work with telerik, so, would you like tell me how I set IsSynchronizedWithCurrentItem to true ? I am using telerik 2009 !!
Thanks (sorry for my English) !!
0
Tai
Top achievements
Rank 1
answered on 09 Sep 2010, 04:22 AM
IsSynchronizedWithCurrentItem is a property of the radgridview
just do  IsSynchronizedWithCurrentItem = "true"
0
Daniel
Top achievements
Rank 1
answered on 14 Sep 2010, 12:19 PM
Hey Tai

Thanks a lot for your help !!
Tags
GridView
Asked by
jay
Top achievements
Rank 1
Answers by
Milan
Telerik team
Daniel
Top achievements
Rank 1
Tai
Top achievements
Rank 1
Share this question
or