DataGrid Scrolling problem
Bob Sneidar
bobsneidar at iotecdigital.com
Wed Oct 2 10:50:50 EDT 2019
When I have datagrid display weirdness I do a couple things. First, I get the dgText of the datagrid to see if there isn't unexpected data there. I will also get the dgData to see if there aren't off keys. Once I had a bug in my code that put a key of 0 with an empty value. It didn't display, but it caused issues (can't remember what they were at the moment).
Another thing I have done is recreate the datagrid. I wrote two functions to "backup" and restore a datagrid. I essentially create an array with all the properties I care about in a datagrid, then restore those settings to a new datagrid.
Bob S
> On Oct 2, 2019, at 07:19 , Mike for GDC via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Hello,
>
>
>
> I have a problem with a datagrid. I cannot see the last couple of rows
> when scrolling. For instance if you have 100 lines and scroll to the bottom
> of the grid you only get up to 98. If you "hold" the scroll by forcing the
> scroll to go to the bottom you can see lines 99 and 100 but because you are
> holding the screen you cannot "select" either one of those lines. When you
> take your finger off the grid, the scroll immediately takes the last two
> lines off the screen and you can just see up to line 98 again. Hope this
> description makes sense.
>
>
>
> Thanks.
>
> Mike
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list