>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:
LPARAMETERS nColIndex
if !empty(This.RecordSource) and reccount(This.RecordSource) > 0
This.OldActiveRow = RecNo(This.RecordSource)
endif
LPARAMETERS nColIndex
if !empty(This.RecordSource)
if This.OldActiveRow <> RecNo(This.RecordSource)
This.GridRowChange()
ThisForm.Refresh()
endif
endif
Mark McCasland
Midlothian, TX USA