I want my cell to enter the "edit" mode only when text is typed into it.
I set the ActivateCurrentCellBehavior to GridCellActivateAction.None and do a BeginEdit in the overrided OnKeyDown method. The cell enters the edit mode but the first key stroke (the one that triggered the BeginEdit) is not added to the cell text.
ADAdministrator Syncfusion Team April 25, 2003 07:16 AM
Are you calling the base class in your OnKeyDown override?
You really should only have to set GridCellActivateAction.None. Pressing any key (that is not a navigation key like tab or arrows) on a cell should activate it even with GridCellActivateAction.None (unless you are using a particular celltype like Static that does not support editing, but it should work for the default TextBox). If you are not seeing this behavior, then its is probably a bug. What grid version are you using, and can you see this behavior in one of our samples so we can try to reproduce it here.
OCOlivier ChoquetteApril 25, 2003 11:58 AM
Setting GridCellActivateAction.None fixed the problem... i just didnt notice it
sorry, my mistake :)