Search found 5 matches

by cmalumphy
Sun Feb 23, 2014 7:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Setting Datagrid Table Column Headings
Replies: 6
Views: 4845

Re: Setting Datagrid Table Column Headings

Still doesn't work. Again, neither the datagrid nor the column headings appear. Could there be something wrong with the settings for my datagrid. Also what does the following mean There are two forms of the revDatabaseColumnNames function. It can either be used to return the list of column names in ...
by cmalumphy
Sun Feb 23, 2014 6:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Setting Datagrid Table Column Headings
Replies: 6
Views: 4845

Re: Setting Datagrid Table Column Headings

It still doesn't work. The datagrid does not populate using your code and the column headings do not appear. put revDatabaseColumnNames(gConnectionID,"mytable") into theFields -- get field names from table replace "," with TAB in theFields       set the dgText[TRUE ] of group "DataGrid1" of card 3 t...
by cmalumphy
Sun Feb 23, 2014 5:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Setting Datagrid Table Column Headings
Replies: 6
Views: 4845

Setting Datagrid Table Column Headings

I am having trouble dynamically setting column headings on a datagrid table that I populate with the results of a database query. The sql query is entered by the user into a textfield, so the column headings cannot be set in advance since each query could request different fields in different orders...
by cmalumphy
Tue Feb 12, 2013 1:44 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Populating a DataGrid
Replies: 3
Views: 2577

Re: Populating a DataGrid

Thank you for the responses Sturgis and Klaus. Changing "firstLineContainsColumnNames" to false was all I needed to do. It then worked very well.
by cmalumphy
Mon Feb 11, 2013 3:02 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Populating a DataGrid
Replies: 3
Views: 2577

Populating a DataGrid

I am trying to learn how scrolling fields, table fields and datagrids work. I have been successful in putting my data into scrolling fields and table fields, but not into a datagrid. I just can't figure out the correct syntax. Can you help. Here is what I am trying. I query a database, and try to pu...