Page 1 of 1
Multi-Hilite Datagrid
Posted: Wed Mar 10, 2021 8:28 pm
by DavJans
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.
Re: Multi-Hilite Datagrid
Posted: Wed Mar 10, 2021 8:36 pm
by Klaus
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
Re: Multi-Hilite Datagrid
Posted: Wed Mar 10, 2021 8:47 pm
by stam
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!
Re: Multi-Hilite Datagrid
Posted: Wed Mar 10, 2021 9:31 pm
by DavJans
Thank you!
Re: Multi-Hilite Datagrid
Posted: Wed Mar 10, 2021 9:45 pm
by stam
Varsågod!! -- but Klaus is always so much quicker on the draw
Sometimes this forum is the place to find a helping hand

Re: Multi-Hilite Datagrid
Posted: Wed Mar 10, 2021 9:53 pm
by SparkOut
So you got outklaussed huh? It happens all the time!
