Skip to content

Replies

0
Stephen Zaharuk
Stephen Zaharuk answered on Feb 25, 2011 5:49 PM

Ah, you want the row to enter edit mode. 

Then do this:

  grid.EnterEditMode((Row)grid.ActiveCell.Row, grid.ActiveCell);

-SteveZ

0
Stephen Zaharuk
Stephen Zaharuk answered on Feb 25, 2011 4:21 PM

Hi, 

I tried out your code, and it appears to work fine. WIth the exception that i had to add this:

void grid_CellExitedEditMode(object sender, CellExitedEditingEventArgs e)

        {

            isEditing = false;

        }

Hitting enter exited edit mode for me no problem. 

Now, i don't have any editing settings turned on, and i tried this on a TextColumn. If you have a custom editor or any editor that handles the enter key, then the xamGrid won't exit edit mode, as it defaults to the editor's key handling first. 

-SteveZ