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

RadGridview scroll programatically

3 Answers 172 Views
GridView
This is a migrated thread and some comments may be shown as answers.
MK
Top achievements
Rank 1
MK asked on 04 Aug 2010, 03:28 PM
Hi All,
How can scroll the Radgridview programatically.
i want that on button click radgridview one row up or down move.

Thanks 
Mahesh

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 04 Aug 2010, 04:33 PM
Hi Mahesh,

You can access the vertical horizontal scroolBar in this way:
var verticalScrollBar = RadGridView1.ChildrenOfType<ScrollBar>().Where(s=>s.Orientation == Orientation.Vertical).First();

And from there you can manipulate its position based on your custom logic.
Please let me know if you need any additional information.

Regards,
Vanya Pavlova
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
MK
Top achievements
Rank 1
answered on 04 Aug 2010, 05:00 PM
Hi Vanya,
Thanks for reply.
I have two button (Up and Down) and i want that when i press up button then grid move one row up and vice versa.
Please can you give me one example.

Thanks
Mahesh
0
Vlad
Telerik team
answered on 09 Aug 2010, 08:32 AM
Hi,

You can use ScrollIntoView method of the grid to force the grid to show into view particular item. 

Greetings,
Vlad
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
Tags
GridView
Asked by
MK
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
MK
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or