Multi-Hilite 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
DavJans
Posts: 270
Joined: Thu Dec 12, 2013 4:21 pm
Location: Spokane, WA USA

Multi-Hilite Datagrid

Post by DavJans » Wed Mar 10, 2021 8:28 pm

I want the user to be able to set this property and I know how to set a property but I don't know what the name of that property is in the datagrid. If I cover the mouse over the property it tells me "multiple lines" but that's not it.
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

Klaus
Posts: 13858
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Multi-Hilite Datagrid

Post by Klaus » Wed Mar 10, 2021 8:36 pm

Do this:

Code: Select all

set the dgProps["multiple lines"] of grp "your datagrid here" to TRUE 
## or FALSE
You will find almost every setting in the custom property set -> dgProps of your datagrid group

stam
Posts: 2731
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Multi-Hilite Datagrid

Post by stam » Wed Mar 10, 2021 8:47 pm

Hi,

The data grid is an amazing beast. It's not one of the 'standard' object properties but if you check the documentation you'll find there is a dgProp called 'multiple lines'.

to get it, you can say:

Code: Select all

put the dgProp["multiple lines"] of group "Data Grid"
This can be set to true to allow multiple line selection (or false for opposite)

Or you can directly get/set the hilited lines with the dgHilitedLines

Code: Select all

set the dgHilitedLines of group "DataGrid" to pLine

hope that helps
Stam

edit---- Klaus is just too quick for me lol!

DavJans
Posts: 270
Joined: Thu Dec 12, 2013 4:21 pm
Location: Spokane, WA USA

Re: Multi-Hilite Datagrid

Post by DavJans » Wed Mar 10, 2021 9:31 pm

Thank you!
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

stam
Posts: 2731
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Multi-Hilite Datagrid

Post by stam » Wed Mar 10, 2021 9:45 pm

Varsågod!! -- but Klaus is always so much quicker on the draw :)

Sometimes this forum is the place to find a helping hand ;)

SparkOut
Posts: 2857
Joined: Sun Sep 23, 2007 4:58 pm

Re: Multi-Hilite Datagrid

Post by SparkOut » Wed Mar 10, 2021 9:53 pm

So you got outklaussed huh? It happens all the time! :)

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”