Home Forums WinForms controls Xceed Grid for WinForms Pages instead of scrolling

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #16262 |

    Hi, I’m wondering if the grid can be configured to use multiple pages instead of the vertical scrollbar, so that you can set it to display like 20 rows on a page and the user clicks on ‘next page’ to see the next set of data?

    Regards,

    Hans

    Imported from legacy forums. Posted by Hans (had 640 views)

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.