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: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
makeshyft
Posts: 220
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
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
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: 220
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.
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”