Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restricting entry to only one row in a grid
Message
From
17/04/2004 04:47:39
 
 
To
16/04/2004 17:08:09
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00895729
Message ID:
00895797
Views:
20

Having trouble getting my grid to only restrict entry to the current row. Does anyone else do this?
I'm allowing the user to click an Edit button and then trying to enable the current control which is normally disabled.
This almost works, but a couple things happen - the highlight that
I use does not display when the control is not enabled and if it is enabled it is enabled for all rows.


The solution is to disable the grid without disable the column,
but VFP copy Grid Enabled into all columns Enabled and any Column Enabled into all controls Enabled
( One absurd what, it simplified the graphical operations, but destroy all the Enabled configuration into
a grid )
Another way is:
Procedure Grid.When
 IF GridIsDisabledCondition
   RETURN .F.
 ENDIF

I want to retain my highlighting when not editing the control and restrict movement to another row unless the Save button has been clicked. Just can't seem to get my thoughts around this one.
* THIS IS SIMPLE INTO vfp8, but it is not complete because VFP have problem into RowColChange value
PROCEDURE Grid.BeforeRowColChange
IF BITTEST(m.this.RowColChange,0) && row change
   NODEFAULT
   RETURN
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform