Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with desired grid behavior
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00203602
Message ID:
00203778
Views:
13
Errh, a RETURN .F. in the When event I meant.

Marc



>Hi Paul,
>
>Put a .f. in the When Event of the textbox in those columns where you do not want your user to enter, the column will be skipped.
>
>HTH,
>
>Marc
>
>
>>I have a grid with a cursor as its source. There are certain columns that I do allow the end user to modify and others that I don't.
>>
>>The columns that I do allow the end user to modify I only want them to modify the column if some expression for the current record of the cursor is true (ie cursor.cur_flag = true).
>>
>>I can't seem to get this to work I tried within the init of the grid to set the columns readonly value (ie this.column1.readonly = cursor.cur_flag = .t.)
>>
>>Another thing is that even if the column is readonly the cursor still can be placed within the textbox. I like the behavior of the when event returning .f. better because the cursor will not sit in the textbox but unfortunately I realized that if you return .f. then that record is not selected at all.
>>
>>I hope this rambling makes sense...
>>Thanks,
>>Paul

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Reply
Map
View

Click here to load this message in the networking platform