fanlinux90
Programmer
I can move the same row of two different grids that use the same cursor as recordsource after clicking on any column of the grid pc and using the keyboard
grid pc1 procedure afterrowcolchange
LOCAL lcAlias
lcAlias = ALIAS()
SELECT(this.recordsource)
SKIP
IF EOF()
GO BOTTOM
ENDIF
IF NOT EMPTY( lcAlias )
SELECT( lcAlias )
ELSE
SELECT 0
ENDIF
thisform.pc.setfocus()
grid pc procedure afterrowcolchange
LOCAL lcAlias
lcAlias = ALIAS()
SELECT(this.recordsource)
SKIP
IF EOF()
GO BOTTOM
ENDIF
IF NOT EMPTY( lcAlias )
SELECT( lcAlias )
ELSE
SELECT 0
ENDIF
Thisform.pc1.Columns(1).SetFocus()
thisform.pc1.setfocus()
How do I move the same row of two different grids when I use the mouse, when I click on it the same row is selected and when I use the scroll the two grids are moved?
grid pc1 procedure afterrowcolchange
LOCAL lcAlias
lcAlias = ALIAS()
SELECT(this.recordsource)
SKIP
IF EOF()
GO BOTTOM
ENDIF
IF NOT EMPTY( lcAlias )
SELECT( lcAlias )
ELSE
SELECT 0
ENDIF
thisform.pc.setfocus()
grid pc procedure afterrowcolchange
LOCAL lcAlias
lcAlias = ALIAS()
SELECT(this.recordsource)
SKIP
IF EOF()
GO BOTTOM
ENDIF
IF NOT EMPTY( lcAlias )
SELECT( lcAlias )
ELSE
SELECT 0
ENDIF
Thisform.pc1.Columns(1).SetFocus()
thisform.pc1.setfocus()
How do I move the same row of two different grids when I use the mouse, when I click on it the same row is selected and when I use the scroll the two grids are moved?