[Gambas-user] How do I edit a DataView control

Benoît Minisini gambas at ...1...
Mon Jul 29 02:53:19 CEST 2013


Le 29/07/2013 02:37, Marty a écrit :
> Hello All,
>
> I have a dataview control that is contained in a datasource. The
> datasource table property is set to a SQL command tat gets the data. I
> can see the data in the dataview and return the index of the selected row.
>
>   From the documentation on the net it appears as though the individual
> cells can be edited. The graphic in the Gambas docs shows a cursor in a
> cell with an insertion point. I can read the data from the datasource
> with "var = datasource1!xxxx" but the converse "datasource1!xxxx = XX"
> raises an error. Not an array on form foo.
>
> I need to both display and edit the contents of the cell as well as add
> and delete records. So how do I do it in Gambas 3?
>
> Thanks in advance to all who offer answers.
>
> Marty:-)
>

DataSource is read-only if it points at a SQL query. It is editable only 
if it points at a table.

Regards,

-- 
Benoît Minisini




More information about the User mailing list