protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GXGridView1.TotalRecords = ActiveStatuse.SelectCountCached(); mvMain.SetActiveView(viewGrid); reportControl.BranchName = BrokerHouseInformation.GetBrokerHouseNameByCode(BrokerHouseInformation.FIRST_ROW); reportControl.CompanyName = "Брокерско друштво"; } }
protected void btnDelete_Click1(object sender, EventArgs e) { Statuse s = Statuse.Get(Convert.ToInt32(DetailsView1.SelectedValue)); s.IsActive = false; Statuse.Table.Context.SubmitChanges(); GXGridView1.TotalRecords = ActiveStatuse.SelectCountCached(); GXGridView1.DataBind(); mvMain.SetActiveView(viewGrid); }
protected void DetailsView1_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e) { if (e.Exception != null) { e.ExceptionHandled = true; e.KeepInEditMode = true; ValidationUtility.ShowValidationErrors(this, e.Exception); } else { GXGridView1.TotalRecords = ActiveStatuse.SelectCountCached(); GXGridView1.DataBind(); mvMain.SetActiveView(viewGrid); } }
protected void DetailsView1_ItemDeleted(object sender, DetailsViewDeletedEventArgs e) { GXGridView1.TotalRecords = ActiveStatuse.SelectCountCached(); GXGridView1.DataBind(); mvMain.SetActiveView(viewGrid); }