I am working on a project in C# where I need to navigate a DataGrid through the use of directional keys and a numeric keypad (and NO touchscreen :’( ). There is an enter button which I am using to activate what I call “Edit DataGrid Mode”, where I call the following on the DataGrid myGrid (which selects row 10, for example, and colors it yellow):
Problem is, I would like to be able to enter into a “Edit Cell Mode” when I click the enter button again, but in the DataGrid class, there doesn’t seem to be any way to show a cell is selected. I thought about using a popup window that would get the data from the cell and then proceed from there, but I would rather avoid popups in favor of a more streamlined approach. Am I missing something about how I could trigger touch events to make a cell select? Or should I just go the hardcore route and use something similar to [code=cs]window.Graphics.DrawTextInRect(…); [/code
to make a text rectangle appear over the cell I am editing?