At 04:29 PM 7/7/2006 -0400, Steve Ellenoff wrote:
...
Nothing comes to mind as a solution off the top of my head, other than
somehow using the when() idea to conditionally trigger .t. or .f. based on
the row you want, but I'm not sure that would work or not..
-Steve
...
This does indeed work just fine. I've used it frequently. Another approach
might be to set the textboxe's (or other control's) .readonly property to
.F. in the gotfocus of the control (e.g. based on some logic for that
record, and that field, set the .readonly to either .T. or .F. in the
.gotFocus event of the control). Using the .when event will prevent the
textbox from receiving focus at all whereas setting the .readonly in the
.gotfocus would still let them highlight/copy. So pick the approach based
on the desired outcome.
HTH,
-Charlie
At 04:04 PM 7/7/2006, you wrote:
Hello and TGIF
How can I make some rows in a grid readonly and others editable?
Thanks,
Kent
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.