I am simulating a percent cell using a method described in another forum thread.
This is fine all the time that hitting Enter causes movement to another cell.
With EnterKeyBehavior=Right, hitting Enter in the right most column results in no movement(as expected)and so the % value is not displayed correctly until manually leaving the cell.
How can I force the cell to display correctly in this situation?
I have attached a small example which has a grid with 2 columns. Try inserting values & hitting Enter to see the problem.
ADAdministrator Syncfusion Team April 12, 2005 11:47 AM
Selectively calling CurrentCell.EndEdit when you are in the last column worked around the problem in your sample. The code is below.
Another option is to make the enter wrap to the next row. You can do this by setting a property.
this.grid.Model.Options.WrapCellBehavior = GridWrapCellBehavior.WrapRow;
But in this case, the sample problem will exist on the bottom most-right most cell. So, you would have to call EndEdit on the last cell in the grid to force the cell to lose focus in that case.