In setting up a datagrid I have a grid containing 5 rows and 4 colums.
I've set my first cell to be 0,0 (no problem)
Tabbing will move in an orderly function from left to right. (no problem)
I wish the <return> key to behave like the <tab> key but the <return> key currently moves DOWN the grid rather than across.
I've added code for the 'keydown' event on the grid which states....
if NOT e::KeyCode = type "System.Windows.Forms.Keys"::Return
exit method
end-if.
set indexOfRow to mydata::CurrentCell::RowIndex.
set indexOfColumn to mydata::CurrentCell::ColumnIndex.
set mydata::CurrentCell To mydata[indexOfColumn 1 indexOfRow]
Despite this code the cursor now moves ONE cell across and ONE LINE down.
What am I missing?




