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.

GridDataBoundGrid & Delete Key

Thread ID:

Created:

Updated:

Platform:

Replies:

35971 Oct 17,2005 03:21 PM Oct 17,2005 04:01 PM Windows Forms 2
loading
Tags: GridControl
Todd Geraty
Asked On October 17, 2005 03:21 PM

Hi, I''m running into a problem with the Delete key when I''m in the GridDataBoundGrid control. When I''m in a cell and editing the text, the Delete key does not work (deleting characters). I''ve narrowed it down to the ListBoxSelectionMode property in conjunction with the EnableRemove property. We need ListBoxSelectionMode set to MultiExtended and EnableRemove set to false. Unfortunately, when these modes are set, the Delete key doesn''t seem to work at all. If EnableRemove is turned back on, pressing Delete removes the whole row. However, even this doesn''t really make sense because I''m currently editing a cell. The Delete key should delete the characters to the right of my position (like it normally does). I can understand it deleting the row if I wasn''t currently editing the cell. But that''s a side issue, because we need ListBoxSelectionMode set to MultiExtended and EnableRemove set to false. And when we edit a cell, the Delete key should work as normal.

Administrator [Syncfusion]
Replied On October 17, 2005 03:50 PM

You can work around this problem by handling the CurrentCellKeyDown event. http://www.syncfusion.com/Support/user/uploads/GDBG_Delete_b1a3c869.zip

Todd Geraty
Replied On October 17, 2005 04:01 PM

Works like a champ - thanks!

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.

;