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.

Delete Key

Thread ID:

Created:

Updated:

Platform:

Replies:

16410 Jul 14,2004 03:10 PM Jul 19,2004 11:53 AM Windows Forms 3
loading
Tags: Grouping
Ben
Asked On July 14, 2004 03:10 PM

Ok, just wondering what event to catch when the delete key is pressed, I don''t want to handle it through the keydown event. I''m using a GridGroupingControl and allowedit is false so that the delete key deletes the current row, built in behavior. I''d like to catch events similar to rowdeleting and rowdeleted for a griddataboundgrid but I haven''t found those events for a GGC. Thanks Ben

Administrator [Syncfusion]
Replied On July 15, 2004 08:34 AM

Hi Ben, I added RecordDeleting and RecordDeleted events in our source base. Right now they simply weren''t there. With those events in place (next patch will have them) you can then cancel record deletion as shown in following code : this.gridGroupingControl1.RecordDeleting += new RecordEventHandler(gridGroupingControl1_RecordDeleting); this.gridGroupingControl1.RecordDeleted += new RecordEventHandler(gridGroupingControl1_RecordDeleted); private void gridGroupingControl1_RecordDeleting(object sender, RecordEventArgs e) { Syncfusion.Diagnostics.TraceUtil.TraceCurrentMethodInfo(e); // Don''t allow deletion of record e.Cancel = true; } private void gridGroupingControl1_RecordDeleted(object sender, RecordEventArgs e) { Syncfusion.Diagnostics.TraceUtil.TraceCurrentMethodInfo(e); } Please note that the event is raised when the Table triggers the deletion (e.g. delete key). If the underlying source list deletes the record, a Table.SourceListListChanged event is raised instead. Stefan

Ben
Replied On July 15, 2004 09:01 AM

Stefan, Is there an estimated time table for when the next patch will occur. Just trying to decide if I can wait for the events to be added or I need to write a workaround. Thanks Ben

Administrator [Syncfusion]
Replied On July 19, 2004 11:53 AM

Hi Ben, With the next public patch we will have support for RightToLeft in grid and tools product. The grid part is finished since a while but there are still some issues with the tools product. As soon as these tools issues are resolved we''ll create a public patch. My guess is we could have the public patch ready end of next week. In the meantime you can open a direct-trac incident and we''ll send you download instructions for a private pacth. Stefan

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.

;