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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ggc.TableOptions.ListBoxSelectionMode and Del-key

Thread ID:





41198 Feb 24,2006 12:58 PM UTC Feb 25,2006 02:13 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On February 24, 2006 12:58 PM UTC

Hi, after setting the selection mode of ggc to ListBoxSelectionMode the event "TableControlKeyPress" does not fire when pressing DEL-key (and other keys) anymore. Also ggc.KeyPress does not fire. ListBoxSelectionMode is my prefered selection mode, but how can the user delete a row in this mode. Any ideas? Greetings, Klaus BTW: What is the correct name of the pencil that is shown in the rowheader when the row is currently edited? Is there a special event when the user clicks on the pencil?

stanleyj [Syncfusion]
Replied On February 25, 2006 02:13 PM UTC

Hi Klaus, Try catching the delete key in TableControlKeyDown. if(e.Inner.KeyCode == Keys.Delete) { Record rec = e.TableControl.Table.CurrentRecord; rec.Delete(); } You can call it as pencil, there is no special event to raise when click on the pencil. You can try capturing the click of the row header of the editing record. Best regards, Stanley


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon