Page 1 of 1

Scoll Datagrid to a specific key/element in its dgData array

Posted: Thu Dec 11, 2014 11:38 pm
by makeshyft
Hi Everyone,

I'm stumped. I need the ability to scroll my datagrid to a particular [element #] of its dgData property. Can someone please help me how to approach it?

Thanks,

Tom

Re: Scoll Datagrid to a specific key/element in its dgData a

Posted: Thu Dec 11, 2014 11:45 pm
by dunbarx
Hi.

Play with the "scrollLineIntoView" and "scrollIndexIntoView" commands. The first takes one parameter, the line number of interest. Finding the line that the text you need is on can be done in several ways.

Craig Newman

Re: Scoll Datagrid to a specific key/element in its dgData a

Posted: Thu Dec 11, 2014 11:58 pm
by makeshyft
Whoa.....my mistake to think that there is no way its a built in function. not the first time I was so pleasantly surprised with LiveCode. #mybad Thanks Craig.