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

Scrolling to end after grouping

3 Answers 129 Views
GridView
This is a migrated thread and some comments may be shown as answers.
RS
Top achievements
Rank 1
RS asked on 18 Aug 2012, 06:43 PM
Hi,
My grid has been grouped and expanded all groups.  After loading, it is scrolling to end of the grid.   Can you let me if there any properites i need to set to scroll to top of the grid.
I tried following but it is not displaying top summary rows.
Grid.TableElement.ScrollTo(0);

Please help me.

3 Answers, 1 is accepted

Sort by
0
RS
Top achievements
Rank 1
answered on 21 Aug 2012, 12:31 PM
Can anybody help me?
0
Accepted
Jack
Telerik team
answered on 22 Aug 2012, 01:34 PM
Hi,

When loading RadGridView synchronizes the current row position with the currency manager for the associated DataSource. When doing this it ensures that the current row is visible and scrolls if necessary. You can change this behavior by setting the current row explicitly. For example:
this.radGridView1.ChildRows[20].IsCurrent = true;

Another option is to change the scroll position:
this.radGridView1.TableElement.VScrollBar.Value = 0;

I hope this helps.
 
Kind regards,
Jack
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
RS
Top achievements
Rank 1
answered on 22 Aug 2012, 05:48 PM
Thanks for your quick response. It is perfectly working.
Tags
GridView
Asked by
RS
Top achievements
Rank 1
Answers by
RS
Top achievements
Rank 1
Jack
Telerik team
Share this question
or