Populating a datagrid form with database values

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Populating a datagrid form with database values

Post by Klaus » Wed May 21, 2014 12:21 pm

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.

fko
Posts: 61
Joined: Tue May 20, 2014 2:13 pm

Re: Populating a datagrid form with database values

Post by fko » Wed May 21, 2014 6:00 pm

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

Post Reply