Limiting datagid selection hilite

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Limiting datagid selection hilite

Post by tasdvl9 » Mon Oct 05, 2015 2:40 am

Hello,

I'd like to limit the hilighting in my datagrid to only 2 selections.

Any ideas on how to do this?
Thanks.

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

Re: Limiting datagid selection hilite

Post by dunbarx » Mon Oct 05, 2015 3:14 am

Hi.

Do you mean limit to two lines? Or did you want to be able to select two fields?

If the former, you can use the "dgHilitedLines" property, and store and limit the selection history as it develops, perhaps deSelecting any lines that are "too old".

Craig Newman

tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Re: Limiting datagid selection hilite

Post by tasdvl9 » Mon Oct 05, 2015 3:33 am

Thanks so much. I'll give that a go.

Post Reply