Select xth row of the datagrid

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
terryho
Posts: 126
Joined: Mon Nov 05, 2012 2:53 pm

Select xth row of the datagrid

Post by terryho » Wed Oct 09, 2013 4:04 pm

Hi all,

How can I select the 3rd row of datagrid when it is open?

I want when a card is open, there is a datagrid. I want it will highlight/pre-select the 3rd row of the datagrid.

I know I can use dgindex or dgHilitedLines, but I can not figure out, how to pre-select a row in it

Regards

Terry Ho

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Select xth row of the datagrid

Post by Klaus » Wed Oct 09, 2013 4:07 pm

Hi Terry,

almost there:

Code: Select all

on opencard
  set the dghilitedlines of grp "Your datagrid group here" to 3
end opencard
:D


Best

Klaus

terryho
Posts: 126
Joined: Mon Nov 05, 2012 2:53 pm

Re: Select xth row of the datagrid

Post by terryho » Wed Oct 09, 2013 4:18 pm

Wow, Fast. :lol:

Thanks your help..

Regards

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Select xth row of the datagrid

Post by Klaus » Wed Oct 09, 2013 5:06 pm

Time is money! :D

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Select xth row of the datagrid

Post by dunbarx » Wed Oct 09, 2013 6:11 pm

Klaus pounces like a lion. You have to be fast to beat him.

Craig

Post Reply