Page 1 of 1

Data Grid

Posted: Thu Jul 05, 2018 10:14 am
by Quinton B.
Hello, data grids are the thing that I struggle with the most.
I'm trying to create basically a contacts list.
I've seen the LiveCode post about this.
The main difference is that I will be porting in the data from an SQL database.
I get how to database portion of the code works.
What I don't get is how to display the data, and if so how do I go about displaying the data for each data entry in the SQL database.

Re: Data Grid

Posted: Thu Jul 05, 2018 12:05 pm
by mrcoollion
You might want to read the following post .

viewtopic.php?t=20195

regards,

Paul

Re: Data Grid

Posted: Thu Jul 05, 2018 8:11 pm
by richmond62
Oh, I'd just use a table field.

Re: Data Grid

Posted: Thu Jul 05, 2018 8:36 pm
by Klaus
We know, Richmond, we know! 8)

Re: Data Grid

Posted: Fri Jul 06, 2018 7:41 pm
by mrcoollion
I use a lot of DataGrid.
It is not a complex as it seems when you understand the way they are set up.
Keep on experimenting and you will get there. :wink:

Re: Data Grid

Posted: Sat Jul 07, 2018 2:04 am
by MaxV
Well, if you read here, you'll see a lot of properties of datagrid: https://livecode.wikia.com/wiki/Datagrid_API
To query a database see: https://livecode.wikia.com/wiki/MySQL
The main datagrid properties for your goals are:
  • dgText
  • dgHeader
  • dgData
If the data is very simple, without return chars or TAB, you can just use the DgText.