Row separator lines in Datagrids

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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Row separator lines in Datagrids

Post by phaworth »

Is it possible to have a line between rows of a datagrid? I've switched off the alternating color property but would like to have some sort of separation between rows.
Thanks,
Pete
Zryip TheSlug
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 163
Joined: Tue Jan 26, 2010 10:15 pm
Contact:

Re: Row separator lines in Datagrids

Post by Zryip TheSlug »

phaworth wrote:Is it possible to have a line between rows of a datagrid? I've switched off the alternating color property but would like to have some sort of separation between rows.
Thanks,
Pete
Hi Pete,

Yes it possible, but not with the API. Simply draw a line in the template of your datagrid form or several lines (one by columns) in the template of your datagrid table.

You will obtain something like this datagrid on the left of the image:

Image
TheSlug
http://www.aslugontheroad.com - Tutorials, demo stacks and plugins for LiveCode
Data Grid Helper - An intuitive interface for building LiveCode's Data Grids
Excel Library- Extends the LiveCode language for controlling MS Excel
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Re: Row separator lines in Datagrids

Post by phaworth »

Thanks, sounds like that will work fine.

I don't recognise the screen image you included in your reply - that's not the normal IDE right?

Pete
Zryip TheSlug
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 163
Joined: Tue Jan 26, 2010 10:15 pm
Contact:

Re: Row separator lines in Datagrids

Post by Zryip TheSlug »

phaworth wrote:Thanks, sounds like that will work fine.

I don't recognise the screen image you included in your reply - that's not the normal IDE right?

Pete
Right,
That's a screen image of the pugin I'm actually building to help with datagrids: the Data Grid Helper.


Regards,
TheSlug
http://www.aslugontheroad.com - Tutorials, demo stacks and plugins for LiveCode
Data Grid Helper - An intuitive interface for building LiveCode's Data Grids
Excel Library- Extends the LiveCode language for controlling MS Excel
Post Reply