Lost In Edit Mode?

Hi, I''m sure I''m probably missing something obvious, but I''ve got a problem where my grid seems to get lost in edit mode when I execute some asyncronous code. I''ve modified the GridPopulationSample to demonstrate the problem. To reproduce the problem, start editing one of the cells and before you finish editing hit the F9 key. Once the dialog disappears the grid won''t start editing the cell if you start typing. Even clicking into another cell does not work. As soon as you arrow or tab into another cell its back to normal, but what is going wrong after the edit? The problem doesn''t occur if the grid wasn''t editing when the F9 key is hit. (I''m using version 4.1 but saw the problem back in version 3.3.0.0 as well). Thanks, Sue

LostInEdit.zip

1 Reply

ST stanleyj Syncfusion Team January 3, 2006 06:27 AM UTC

Hi Sue, You are missing the focus on Grid after the form is shown when F9 key was pressed. Calling the grid.Focus() method at the end of Recalculate() method will get the Grid focused. To get back to the editmode, you could try the CurrentCell.BeginEdit() method. Best regards, Stanley

Loader.
Up arrow icon