Results 1 to 4 of 4

Thread: Grid refreshes on indexed tables

  1. #1
    Senior Member
    Join Date
    Jan 2014
    Posts
    369

    Grid refreshes on indexed tables

    Hi Guys

    Thanks for the latest release - Lianja is getting so much better with each release - keep up the good work !!

    Question regarding grid refreshes.

    In VFP - moving the record pointer in a table could be easily displayed in a grid by calling grid.Refresh().

    In Lianja, grid.Refresh() resets the grid highlighted row to 1

    In a non indexed table this can be solved by calling oGrid.ActivateCell(RECNO(),1) but on an indexed table, that would not work as RECNO() would not correspond to displayed position.

    Is there an easy solution?

    Thanks in advance

    SpringBox

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,159
    Blog Entries
    22
    Hi SpringBox,

    You can reposition on a row in the grid like this.

    Code:
    Lianja.get("section2").grid.goto(287)
    287 in this case is the record number associated with a row in the grid.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Thanks Barry

    Works fine thank you though we did not expect that syntax to work

    SpringBox

  4. #4
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,184
    Hi SpringBox,

    those things always get me, too: and then I look at the Wiki page (http://www.lianja.com/doc/index.php/Grid) and get a little embarrassed, and promise myself I'll look on the Wiki first, next time. And sometimes I even remember to do that. <s>

    Hank

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us