Hello Roberto,
Sorry for the delay. I created a small sample to explain what I want to say.
This sample has 2 grids. 1st grid is Cellnavigated and 2nd grid is not Cellnavigated. 3rd col for each grid is deactivated.

- gridtest002.jpg (50.51 KiB) Viewed 3430 times
For 1st grid, when I go to 2nd col in edit mode, pressing Enter goes to 3rd col, but IMHO, it should go to 4th col, which actually works for 2nd grid (when cellnavigation is .f.).
For 2nd grid. I pressed Enter to go to edit mode. First I was in the 1st col. Then I pressed Enter to go to 2nd col. Then I clicked on the 1st col in the same row. But, the cursor went to 4th col. May be I am wrong, but IMHO it should come out of edit mode. But, when I went to edit mode by double clicking on 2nd col, doing the same thing, takes me out of edit mode, which is, IMHO, fine.
Code: Select all
#include <hmg.ch>
Function Main
local i, aControls := {{'TEXTBOX', 'NUMERIC', '9999999.99'}, {'TEXTBOX', 'NUMERIC', '9999999.99'}, ;
{'TEXTBOX', 'NUMERIC', '9999999.99'}, {'TEXTBOX', 'NUMERIC', '9999999.99'}}, ;
aColwhen := {{|| .T.}, {|| .T.}, {|| .F.}, {|| .T.}}
DEFINE WINDOW main AT 144 , 336 WIDTH 550 HEIGHT 474 TITLE "Grid Test" main
DEFINE GRID Grid_1
ROW 30
COL 30
WIDTH 480
HEIGHT 170
WIDTHS { 100, 100, 100, 100 }
HEADERS {'col 1', 'col 2', 'col 3', 'col 4'}
COLUMNWHEN aColwhen
ALLOWEDIT .T.
COLUMNCONTROLS aControls
CELLNAVIGATION .T.
END GRID
DEFINE GRID Grid_2
ROW 220
COL 30
WIDTH 480
HEIGHT 180
WIDTHS { 100, 100, 100, 100 }
HEADERS {'col 1', 'col 2', 'col 3', 'col 4'}
COLUMNWHEN aColwhen
ALLOWEDIT .T.
COLUMNCONTROLS aControls
CELLNAVIGATION .F.
END GRID
END WINDOW
FOR i := 1 to 10
main.grid_1.additem({i*100, i*200, i*300, i*400})
main.grid_2.additem({i*150, i*250, i*350, i*450})
NEXT
Main.Center
Main.Activate
Return
Please correct me if I have any wrong conception.
Thanks in advance.
With best regards.
Sudip