Getting a handle on using the 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
dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Getting a handle on using the DataGrid

Post by dglass » Mon May 16, 2011 7:03 am

In an attempt to come to grips with the DataGrid, I'm trying to recreate an interface I've previously built using another tool (REALStudio). It looks like this:

Image

Image

The data is in an SQLite db, and I perform a query with all the data, then put the data into the listbox cells one row at a time. I use a property of the listbox called a CellTag to hold bits of data returned in a recordset/cursor that are used to do the formatting of the cells (but don't need to be viewed by the user) such as :
  • coloring text
    adding the arrows
    adding location description (the text from the DB is just a city name)
The CellTag is a convenience that eliminates the need for hidden columns, but I don't think that is possible with the DataGrid.

Any guidance would be appreciated.

Post Reply