protected void Page_Load(object sender, EventArgs e) { ASPxGridViewEvents.DataBind(); ASPxGridViewEvents.Settings.GridLines = GridLines.Both; InitializeEditDeleteButtons(); if (eventFocusedRowID > 0) { ASPxGridViewEvents.FocusedRowIndex = ASPxGridViewEvents.FindVisibleIndexByKeyValue(eventFocusedRowID); ASPxGridViewEvents.ScrollToVisibleIndexOnClient = ASPxGridViewEvents.FindVisibleIndexByKeyValue(eventFocusedRowID); } }
protected void btnDelete_Click(object sender, EventArgs e) { object valueID = ASPxGridViewEvents.GetRowValues(ASPxGridViewEvents.FocusedRowIndex, "idDogodek"); RedirectWithCustomURI("EventsForm.aspx", (int)Enums.UserAction.Delete, valueID); }