We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Grid Combo Deletes on Delete press

Hi I have attached sample application. The problem occurs when Combo Box has been associated with grid cell. Whenever I select any thing from COmbo ( in sample application Column C1 select value A) and then press delete the value disappears. Also it allows me to copy paste any value. How can I rectify the problem. Thanks Regards Tarun Gujral GridCombo_2560.zip

1 Reply

AD Administrator Syncfusion Team July 13, 2005 11:28 AM UTC

One way you can handle this is to derive the grid and override ProcessCmdKey. public class MyGridDataBoundGrid : GridDataBoundGrid { protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if(keyData == Keys.Delete) { GridCurrentCell cc = this.CurrentCell; if(cc.Renderer is GridComboBoxCellRenderer) return true; } return base.ProcessCmdKey (ref msg, keyData); } }

Loader.
Live Chat Icon For mobile
Up arrow icon