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

[Solved] How can I get IScrollInfo.

1 Answer 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
tao
Top achievements
Rank 1
tao asked on 28 Feb 2011, 09:05 AM
I want control the scrollbar of gridview.
I see the interface IScrollInfo, but I don't konw how can I get it.

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 28 Feb 2011, 10:03 AM

Hello tao,

You should first find the ScrollViewer and then use its various methods to scroll. For example:

private void Button1_Click(object sender, RoutedEventArgs e)
{
    var scrollViewer = this.playersGrid.ChildrenOfType<GridViewScrollViewer>().FirstOrDefault();
  
    // use moethods to scroll
    //scrollViewer.ScrollToVerticalOffset(40.0);
}



Greetings,
Milan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
tao
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or