Moving Text Cursor in a DataGridCell

  • Thread starter Thread starter Tome
  • Start date Start date
T

Tome

Hi,

I have a custom datagrid where I override the ProcessCmdKey method to
catch specific key presses. I would like to have it so that when text
is highlighted in a cell and a user presses a key such as Alt the text
cursor unhighlights and moves to the beginning of the text in the
cell.

Thank you,
Tome
 
Hi Tome,

Well, you can do that now, except you need to use the HOME key instead. So... if you absolutely want to use the ALT key, try passing it HOME when ALT is pressed.
 
Thanks for the reply but what I want to do is move the cursor to the
beginning of the inside of the individual cell and not the beginning of
the row as HOME does when navigating. If I am editing text in the cell
HOME works fine but what I want is to navigate to a cell using the arrow
keys and then (without having to click inside the cell with the mouse)
press a key to exit this "Navigation Mode" and start editing the cell.

Thanks
Tome
 
Back
Top