The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
Olivier
ADAdministrator Syncfusion Team April 25, 2003 11:16 AM UTC
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 03:58 PM UTC
Setting GridCellActivateAction.None fixed the problem... i just didnt notice it
sorry, my mistake :)
Olivier