Data Grid Column Headings

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

Data Grid Column Headings

Post by phaworth »

Is there a way to align the column headings in a data grid (left/right/center)?
Thanks,
Pete
trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Post by trevordevore »

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
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Post by phaworth »

Thanks Trevor, but that seems to change only the alignment of the contents of the column, not the column heading
trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Post by trevordevore »

Oh right. Sorry about that. Set the dgHeaderAlignment[COLUMN_NAME] property. It is listed on the Data Grid Properties page.

Data Grid Properties
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
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Post by phaworth »

Great, thanks Trevor.
Post Reply