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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
makeshyft
Posts: 187
Joined: Mon Apr 15, 2013 4:41 am
Contact:

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

Post by makeshyft » Thu Dec 11, 2014 11:38 pm

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
Tom @
http://www.makeshyft.com
---------------------------------
Changing the Future, Today!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6518
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

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

Post by dunbarx » Thu Dec 11, 2014 11:45 pm

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

makeshyft
Posts: 187
Joined: Mon Apr 15, 2013 4:41 am
Contact:

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

Post by makeshyft » Thu Dec 11, 2014 11:58 pm

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.
Tom @
http://www.makeshyft.com
---------------------------------
Changing the Future, Today!

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”