Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
From
06/09/2004 06:49:24
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Re: Grid
Miscellaneous
Thread ID:
00939431
Message ID:
00939700
Views:
14
Thank you Terry, but Nadya Nosonovsky helped me solving my problem.
It had someting to do with the inexistence of table prefix on the column's controlsource.

On the init of the formset i defined the controlsource of every column like this:

thisformset.form1.ct2.grid1.RecordSource = thisformset.cur_facturas
thisformset.form1.ct2.grid1.artIGO.ControlSource = "artigo"
thisformset.form1.ct2.grid1.qtd.ControlSource = "qtd"
thisformset.form1.ct2.grid1.um.ControlSource = "um"
thisformset.form1.ct2.grid1.preco.ControlSource = "preco"
thisformset.form1.ct2.grid1.valor.ControlSource = "valor"
thisformset.form1.ct2.grid1.valor_iva.ControlSource = "valor_iva"
thisformset.form1.ct2.grid1.iva.ControlSource = "iva"

But if i put the table name as prefix of the control source, like this:

thisformset.form1.ct2.grid1.RecordSource = thisformset.cur_facturas
thisformset.form1.ct2.grid1.artIGO.ControlSource = thisformset.cur_facturas + ".artigo"
thisformset.form1.ct2.grid1.qtd.ControlSource = thisformset.cur_facturas + ".qtd"
thisformset.form1.ct2.grid1.um.ControlSource = thisformset.cur_facturas + ".um"
thisformset.form1.ct2.grid1.preco.ControlSource = thisformset.cur_facturas + ".preco"
thisformset.form1.ct2.grid1.valor.ControlSource = thisformset.cur_facturas + ".valor"
thisformset.form1.ct2.grid1.valor_iva.ControlSource = thisformset.cur_facturas + ".valor_iva"
thisformset.form1.ct2.grid1.iva.ControlSource = thisformset.cur_facturas + ".iva"

(thisformset.cur_facturas hold the name of the table)

My problem was solved.

Thank you,
Joaquim


>There's nothing on code to do that, something happened that simply changed the readonly status to TRUE. it seems to happen on the WHEN method, so i went to this method and manualy set the value of readonly to FALSE, simply doing this 'this.readonly = .f.', but it didn't work, this property keeps its value of TRUE.
>

>
>Do you have calls in the WHEN event? Are there methods in the VALID events of the column textboxes?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform