Is that possible to keep the cursor in the same cell of the GridControl after pressing the Enter key?
In my application, the GridControl contains parameters for a charts. If the user modifies a cell and presses Enter, he should see the changes in the chart. But if the cursor goes to another cell which corresponding to a different chart, the user would not see the change he made.
Thank you very much for help.
ADAdministrator Syncfusion Team July 11, 2005 08:18 AM
this.gridControl1.EnterKeyBehavior = GridDirectionType.None;
to see if that gives you want you need.
JSjsun@doble.comJuly 11, 2005 09:35 AM
The cursor stays in the same cell now, but the change for the cell is not "Entered", the event CurrentEditingComplete and KeyPress are not triggered. I will try the KeyUp event to catch the "Enter".
Are there other ways to handle keep the cursor in the same cell?
Thank you very much.
>this.gridControl1.EnterKeyBehavior = GridDirectionType.None;
>to see if that gives you want you need.
ADAdministrator Syncfusion Team July 11, 2005 10:45 AM
You can try handling the CurrentCellControlKeyMessage and calling CurrentCell.COnfirmChanges there.