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.
when i click on "delete", the content in GGC clear even there''s no codes inside the sub TableControlCurrentCellKeyDown()
If i remove the sub, the problem solved, but I do need to have some coding inside TableControlCurrentCellKeyDown().
How can I disable the delete function ?
ADAdministrator Syncfusion Team January 4, 2005 07:02 AM UTC
In your TableControlCurrentCellKeyDown event, if e.Inner.KeyCode equals Keys.Delete, then try setting e.Inner.Handled = true.
ADAdministrator Syncfusion Team January 4, 2005 11:17 PM UTC
Thanks... it works !! But may I know what is it doing ?
ADAdministrator Syncfusion Team January 5, 2005 07:44 AM UTC
By setting e.Handled to true, you are telling the tableControl not to do further processing on the Delete key. And this prevents the clearing of the cells.
JBJames BliboJune 1, 2007 12:31 AM UTC
I want to siable the backspace key from not deleting the contents of the cell, like the delete key, but it is not working... //do not allow delete key to delete contents of cell if (e.Inner.KeyCode == Keys.Delete || e.Inner.KeyCode == Keys.Back || e.Inner.KeyData == Keys.Back) { e.Inner.Handled = true; return; }
HAhaneefm Syncfusion Team June 1, 2007 04:04 PM UTC
Hi James,
You can TableControlCurrentCellKeyPress event to set e.Inner.Handled = true for BackSpace key to tell the tableControl not to do further processing on the BackSpace key. And this prevents the deleting of the cell text.