unhilite a hilited row of datagrid

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

unhilite a hilited row of datagrid

Post by sphere » Sun Jan 14, 2018 9:54 am

Hi,
i'm having a bit of trouble to get the correct syntax to unhilite a hilited line of a datagrid after it's been handled.
So in short--click on a row and it is hilited-->do something with it--->ready then unhilite it. Now it stays hilited.
i tried:
set the hilite of the dgHilitedLine of group "DataGrid 1" to false (but gives error)

set the dgHilitedLine[theLine] of group "DataGrid 1" to false (no error but also does nothing)

set the dgProp[ "auto hilite" ] of group "DataGrid 1" to false
set the dgProp[ "auto hilite" ] of group "DataGrid 1" to true (no error but no effect also)

Do someone knows the correct syntax?

Thanks!

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

Re: unhilite a hilited row of datagrid

Post by Klaus » Sun Jan 14, 2018 3:16 pm

Dag mijnheer,

this should do:
...
set the dghilitedlines of grp "DataGrid 1" to 0
...
Best

Klaus

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: unhilite a hilited row of datagrid

Post by sphere » Sun Jan 14, 2018 6:54 pm

Guten tag Hern Klaus,

ich danke ihnen!

Great! i did not know you could set it to zero.

Bedankt voor uw hulp!

Greetz,
Sphere

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”