このイベントはキャンセルできます。
Me.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowEditTemplate.RowEditingClientEvents.TemplateClosing = "WDG1_TemplateClosing"
this.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowEditTemplate.RowEditingClientEvents.TemplateClosing = "WDG1_TemplateClosing";
// The client event TemplateClosing takes two parameters sender and e // sender is the object which is raising the event // e is the CancelEditRowEventArgs function WDG1_TemplateClosing(sender, e) { //Returns the row whose template is about to be closed var row = e.get_row(); //Returns the index of the row var index = row.get_index(); if (!confirm("Are you sure you want to close the template for the row with index '" + index + "'?")) //Cancels the 'TemplateClosing' event e.set_cancel(true); }