Home Forums WinForms controls Xceed Grid for WinForms Pages instead of scrolling Reply To: Pages instead of scrolling

User (Old forums)
Member
Post count: 23064

 You can hide the scrollbar, and provide a button, and in the click handler, move the current row one page down or up.

e.g.:

private void Form1_Load( object sender, EventArgs e )

{

    gridControl1.ScrollBars = GridScrollBars.Horizontal;

}

private void button1_Click( object sender, EventArgs e )

{

    gridControl1.MoveCurrentRow(

VerticalDirection.PageDown );

    gridControl1.CurrentRow.BringIntoView();

    gridControl1.SelectedRows.Clear();

    if( gridControl1.CurrentRow.CanBeSelected )

    {

        gridControl1.SelectedRows.Add( gridControl1.CurrentRow );

    }

}

Imported from legacy forums. Posted by André (had 771 views)