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 »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Select xth row of the datagrid

Post by Klaus »

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 »

Wow, Fast. :lol:

Thanks your help..

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

Re: Select xth row of the datagrid

Post by Klaus »

Time is money! :D
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: Select xth row of the datagrid

Post by dunbarx »

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

Craig
Post Reply