Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid becomes read-only automatically
Message
 
 
To
12/05/2004 13:20:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00903262
Message ID:
00903285
Views:
20
I would set a break point on when the value of that grid column/textbox changes to read only.

>I have a simple form with a grid on it. The grid's recordsourcetype is set to "Alias". The grid recordsource is an editable cursor created using the following steps:
>1. A Cursor is created by querying a SQL2K table. The communication protocol is ODBC. A stored procedure is called that returns a record set.
>2. Once the record set is returned, another query in VFP is run that appends an empty text field to the result set:
>SELECT fname, space(32) As NewField FROM SQLRESULTS INTO CURSOR NewCursor.
>I then do USE DBF( 'NewCursor' ) AGAIN IN 0 ALIAS 'EditableCursor' to make the cursor editable.
>3. This editable cursor is the RecordSource for the grid. The field 'fName' becomes the ControlSource for column2 and 'NewField' becomes the control source for column1.
>What happens is this: the read only property on Grid.Column1.Text1 changes to true as soon as it gets the focus. Why? If the cursor 'EditableCursor' is browsed using "BROW NORM" all of the fields are editable. I'm really stumped on this one.
>
>Any ideas on how to make this work are appreciated.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform