locked
Scrolling a GridView

    Question

  • I have a program that incrementally adds data to a gridview.  How can I get the grid view to automatically scroll to the right as new data is added?  Also, I have a GridView and a ScrollView on the same page that I would like to synchronize are there events that will tell me when a change is made to one of them?

    - Ken

    Monday, September 17, 2012 12:59 AM

Answers

  • Hi,

    I would suggest you to use GridView, it contains a scrollbar. We can use ScrollIntoView function to scroll some item based on the index.
    Please follow these codes.

    this->GridView1->ScrollIntoView(this->GridView1->Items->GetAt(6));

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Jesse Jiang Monday, September 24, 2012 3:05 AM
    Monday, September 17, 2012 7:31 AM