Moving Text Cursor in a DataGridCell

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
 
M

Morten Wennevik

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.
 
T

t p

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top