Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid question - AfterRowColChange
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00116284
Message ID:
00116289
Views:
17
>I am collecting data on a client company, subject, and client requested processing relevant to that subject. I am collecting the "requested processing" via a Grid. As I'm collecting my data I need to determine if this Client has previously submitted this subject and the "requested processing"....A test for dups.....TestForDups()
>
>I need to make this detection after each "requested process" is entered, and before my user begins entering another process...or if that last one was the last one...I need to check before leaving the grid (or preferably the active cell)
>
>I believe I should use the AfterRowColChange event/method but I'm not sure how to do it. I'm only interested in doing this check when the row changes or when the grid loses focus.
>
>I'd use the AfterRowChange to call my TestForDups() method... but that's not what we have...Am I approaching this right?
>
>
>Can anyone point me in the right direction?
>
>Rick

You are on right track. I have a grid class that in the BeforeRowColChange method, I set a grid property to the current RecNo() of grid's source. In the AfterRowColChange, I test to see if the RecNo() has changed. If it has, I call a custom method of the grid, AfterRowChange.

Using RecNo() is faster than using the ActiveGridRow property.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform