Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on AfterRowColChange
Message
 
 
To
29/07/1999 11:09:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00247689
Message ID:
00247725
Views:
22
>i want to write code in grid's afterrowcolchange. but it should only run if row has changed.
>it should not run if column has changed in same row.
>
>so is there any way by which I can know in afterrowcolchange that row has changed
>
>Thanks in Advance for your help.
>
>Mark

In my grid sublass, I have a property called OldActiveRow and method called GridRowChange. It has the following code as well:
*BeforeRowColChange
LPARAMETERS nColIndex
if !empty(This.RecordSource) and reccount(This.RecordSource) > 0
   This.OldActiveRow = RecNo(This.RecordSource)
endif

*AfterRowColChange
LPARAMETERS nColIndex
if !empty(This.RecordSource)
   if This.OldActiveRow <> RecNo(This.RecordSource)
      This.GridRowChange()
      ThisForm.Refresh()
   endif
endif
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform