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.
Unfortunately, activation email could not send to your email. Please try again.

Grid Combo Deletes on Delete press

Thread ID:

Created:

Updated:

Platform:

Replies:

31716 Jul 13,2005 04:47 AM Jul 13,2005 07:28 AM Windows Forms 1
loading
Tags: GridControl
Tarun Gujral
Asked On July 13, 2005 04:47 AM

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

Administrator [Syncfusion]
Replied On July 13, 2005 07:28 AM

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); } }

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;