Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid
Message
De
06/09/2004 06:40:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Re: Grid
Divers
Thread ID:
00939431
Message ID:
00939697
Vues:
15
Hi Nadya,

Thank you, your solution was the answer to my problem. It really has someting to do with the missing name of the table.

Thank you,
Joaquim

>Hi Joaquim,
>
>One common source for such problem is when you specify column's controlsource as field without table prefix. E.g. you should have MyTable.MyField and not just MyField as a column controlsource. Verify this please.
>
>
>>I have a problem with a grid, its really a recorrent problem, and whenever it comes i simply redesign the grid from the bottom and continue with the work. But now i have to get rid of this problem.
>>
>>My grid has 8 columns, one of them has a combo box, the recordsource of the grid is a cursor that i've set to be ReadWrite.
>>
>>If i try to, manualy, insert records, or to change the content of one field, i can do it, what proves that the cursor is really ReadWrite.
>>
>>But on the grid all the columns behaves as if the cursor had only read permissions, or as if the grid had its readonly property set to TRUE what is not the case.
>>
>>This happens to all the columns except to the combobox. With the combo i can change the content without problems, what once again proves (i think) that the problem don't reside on the cursor.
>>
>>Went to the debugger and tried to see the value of the readonly property, this is what i get:
>>grid1.readonly = .f.
>>grid1.column1.readonly = .f.
>>grid1.column1.text1.readonly = .f.
>>As you see it seems good to go on and to change the values of the field connected to this column. So i selected the TEXT control and try to enter data, but i get a BIP and nothing happens to the value. So i switch to the debugger, and now i get these values:
>>grid1.readonly = .f.
>>grid1.column1.readonly = .f.
>>grid1.column1.text1.readonly = .t.
>>
>>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.
>>
>>I have another grid on another form, and this new form is a copy of the first, and on its grid all works well, but at first glance there are no differences between the two grids.
>>
>>Does anyone knows what happened?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform