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