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.
ADAdministrator Syncfusion Team July 15, 2004 08:34 AM
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)
// Don''t allow deletion of record
e.Cancel = true;
private void gridGroupingControl1_RecordDeleted(object sender, RecordEventArgs 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.
BEBenJuly 15, 2004 09:01 AM
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.
ADAdministrator Syncfusion Team July 19, 2004 11:53 AM
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.