Results 1 to 2 of 2

Thread: how to make sure a datagrid row is visible?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    11

    how to make sure a datagrid row is visible?

    i have a datagrid that is bound to a dataview. at a certain point i find a specific row in the dataview and make the corresponding row in the grid selected (datagrid.selected = idx). but this row may be number 1000, and my grid shows rows 34 to 50...

    How can i scroll the grid so that the selected row is visible (or even better - becomes the top row in the grid)?

  2. #2
    New Member
    Join Date
    Oct 2002
    Posts
    3
    When you select a row,you can bookmark the row using the recordset.bookmark. So when you resize or minimize the record pointer will still be pointing to the same row. Store the bookmark in global variable when you a select a row. So when you close the form and open again, now set the bookmark to the global variable. The selected row now available in the view portion.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width