Posted 8 September 2017, 2:54 pm EST
I need to advance to the next row\same column when the enter key is used but advance to the next column\same row when the tab key is used. The following code handles advancing to the next row\same column when the enter key is used but advances to the next column\2nd row when the tab key is used. Without this code, the enter key doesn't advance anywhere it just stays in the same cell. I have tried using the keyCode but it always evaluates to 0.
if (spread.ActiveRow < spread.GetRowCount())
Any tips area greatly appreciated!