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 am trying to prevent the user from deleting the text in a combobox. The style is autocomplete, exclusive is set to true, but the user can still select the text inside and delete it using the delete key, backspace key, or any combination of these keys with control, alt, shift key. The CurrentCellDeleting event doesn't seem to trap this.
Also, if you put control inside the combobox and hit Control+Delete, the entire combobox disappears. How do i prevent this as well.
JJJisha Joy Syncfusion Team January 12, 2009 06:58 AM UTC
Hi Julie,
We appreciate your interest in Syncfusion products.
The mentioned issues can be avoided by handling CurrentCellDeleting and CurrentCellKeyDown events. Please see the code:
this.gridControl1.CurrentCellDeleting += new CancelEventHandler(gridControl1_CurrentCellDeleting); this.gridControl1.CurrentCellKeyDown += new KeyEventHandler(gridControl1_CurrentCellKeyDown);