protected void BackupsGridView_Delete(object sender, Bitrix.UI.BXDeleteEventArgs e) { BXGridView grid = (BXGridView)sender; try { File.Delete((string)e.Keys["FullName"]); } catch (Exception ex) { } dataSource = GetFiles(); grid.MarkAsChanged(); }
protected void AgentGridView_Delete(object sender, Bitrix.UI.BXDeleteEventArgs e) { BXGridView grid = (BXGridView)sender; try { BXSchedulerAgent.Delete(e.Keys["ID"]); grid.MarkAsChanged(); } catch (Exception ex) { } }