How to activate the first column in cDbCJGrid
VDF16.1
When the user records the datas in a grid, I like that he comes back to the first column in the next line.
In dbgrid, I had such a code
[CODE]
Procedure Down_Row
Forward Send Down_row // move down 1 row
if (champs.recnum = 0) Set Current_Item to (Base_Item(self)) // Make crnt item 0
End_Procedure
[/CODE]
How can I do the same in a cDbCJGrid ?
In the help it's said that the procedure "MoveDownRow" bring the focus to the first column enterable in that row but it seems that it's not correct.
I have written this procedure (where oTests_code11 is the first cDbCJGridColumn) but it doesn't work.
[CODE]
Procedure MoveDownRow
Forward Send MoveDownRow
Send Activate to oTests_code11
End_Procedure
[/CODE]
Thanks
Jacques
Re: How to activate the first column in cDbCJGrid
[code] Send MoveToFirstEnterableColumn[/code]
IOW:
[code]
Procedure MoveDownRow
Forward Send MoveDownRow
Send MoveToFirstEnterableColumn
End_Procedure
[/code]
Re: How to activate the first column in cDbCJGrid
Hi Jacques,
[URL]http://support.dataaccess.com/Forums/showthread.php?46565-First-Column-in-Grid[/URL]
HTH
Re: How to activate the first column in cDbCJGrid
[QUOTE=Jacques Delannay;230108]In the help it's said that the procedure "MoveDownRow" bring the focus to the first column enterable in that row but it seems that it's not correct.[/QUOTE]
Hi Jacques,
can you point me to where it says this in the help so I can correct it? I can't seem to find that.