Page 2 of 2

Re: Populating a datagrid form with database values

Posted: Wed May 21, 2014 12:21 pm
by Klaus
No special command for that, the number of "lines" in tColumns in:
...
set the dgProp["columns"] of grp "myDG" to tColumns
...
will define that, ONE line for each column.

Re: Populating a datagrid form with database values

Posted: Wed May 21, 2014 6:00 pm
by fko
Hi Klaus,

Thanks for the answer...:-)

In fact i saw this in one of the lessons (How do I create a Datagrid dynamically from tab delimited data)

put line 1 of theData into theColumns
--no empty column names are allowed, so I insert a space when that happens
replace tab & tab with tab & " " & tab in theColumns
replace tab with return in theColumns
set the dgProp["columns"] of group "my DataGrid" to theColumns


And using this (adapted to my necesity) i managed...


Thanks for your time and your answers!!! :-)

regards,
fko