Supporting TAB key in the web GRID


I was frustrated by how data entry is somewhat cumbersome in the web grid because the TAB key sets focus off the sheet onto something else instead of moving to the next available cell. To fix this I added the following javascript function to the page:

To get the grid to call the new function I added the following code in the code behind on Page_Load event:

GridWeb1.Attributes.Add("onkeydown", "goToNextCell();")

Now, when you press the TAB key, you move from cell to cell and you can enter data in a more intuitive way.

Charley Lee


That’s a great idea. Thank you.


Thanks Charley! Just what I was looking for. :slight_smile: