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

Post Reply
Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

DataGrid -Column Headings

Post by Simon Knight » Tue May 24, 2011 10:06 am

Is it possible to set the column headings to existing data grid columns from a script? I wish to define some columns in the IDE and then have my script set the headings while preserving any settings made in the IDE such as behaviors.

Thanks

Simon
best wishes
Skids

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: DataGrid -Column Headings

Post by BvG » Tue May 24, 2011 11:50 am

Yes it is possible, as the datagrid is just a group of standard objects with cprops. However, I do not use it much myself. Most information about the datagrid can be found in the lessons:

http://lessons.runrev.com/spaces/lesson ... s/datagrid
and
http://lessons.runrev.com/spaces/lesson ... agrid_tips


You're most likely interested in the entry on datagrid properties:

http://lessons.runrev.com/spaces/lesson ... Properties

see "row template" and under table properties: "columns"
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply