Set a hilitedline for a datagrid.

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Set a hilitedline for a datagrid.

Post by Paul D » Wed Aug 19, 2009 7:27 pm

how does one set a hilitedline in a datagrid. ScrollLineIntoView works but how do I hilited the one I scrolled to? I noticed dgHilitedLine only allows a get according to the API page.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Wed Aug 19, 2009 8:25 pm

Hi Paul,

Code: Select all

set the dgHilitedLines of group "DataGrid 1" to 1
its not in the api but I found it on Trevors site:
http://revolution.screenstepslive.com/s ... Data-Grid-
first script near the bottom.
it works
regards
Bernd

Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Post by Paul D » Thu Aug 20, 2009 2:29 pm

Awesome, thanks Bernd

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Post by trevordevore » Thu Aug 20, 2009 5:02 pm

FYI - Both dgHilitedIndexes and dgHilitedLines appear in the API page.

Data Grid API
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Thu Aug 20, 2009 7:09 pm

Trevor,
you wrote
FYI - Both dgHilitedIndexes and dgHilitedLines appear in the API page
Paul D wrote:
I noticed dgHilitedLine only allows a get according to the API page
So may be you just add the set option to the API page. I didn't find it either.

Besides: Thank you for creating and especially supporting the Datagrid. Without your support I think the mighty fine Datagrid would not have been used as widely as it is. Revolution has a powerful new tool, that solves a lot of problems and opens up many roads.

Thanks again
Bernd

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Post by trevordevore » Thu Aug 20, 2009 7:20 pm

Ah, the docs don't state that you can both get or set the property. I will update it.

As for the support - you are welcome. I'm glad to see so many people using it.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Post by Paul D » Fri Aug 21, 2009 4:23 pm

Yes, big thanks Trevor. Datagrids are awesome.

Post Reply