1 Reply Latest reply on Aug 10, 2006 5:52 AM by DARAB

    What is current top row of datagrid

    DARAB Level 1
      After updating my data and redisplaying it in my datagrid, I what to reposition the display of data in the grid with the same row at the top of the grid. So I need to deremine what the vPosition of the row currently at the top of the grid. How do I get the vPosition of the that row before I update my data?
        • 1. Re: What is current top row of datagrid
          DARAB Level 1
          I found my answer. I just needed to set a variable to the vPosition of the datagrid.

          var_Scroll_Position_Top_Of_Grid = myDataGrid_dg.vPosition;

          Then, after the data in the datagrid is updated, reset the datagrids vPosition to my variable:

          myDataGrid_dg.vPosition = var_Scroll_Position_Top_Of_Grid;