ComponentOne TreeMap for ASP.NET WebForms
C1.Web.Wijmo.Controls.45 Assembly / C1.Web.Wijmo.Controls.C1GridView Namespace / C1GridView Class / ResetScrollState Method

In This Topic
    ResetScrollState Method
    In This Topic
    Resets the virtual scrolling state of the grid view.
    Syntax
    'Declaration
     
    Public Sub ResetScrollState() 
    public void ResetScrollState()
    Remarks

    The scroll state stores the client scroll position if the virtual scrolling is enabled. When the data source is changed on postback, if the new data source items count does not cover the scroll position, there's no data row be rendered. It may cause the data row does not align with the column header.

    Call this method to reset the scroll state, to force the grid view renders the first data row.

    See Also