Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            object valueID = ASPxGridViewEvents.GetRowValues(ASPxGridViewEvents.FocusedRowIndex, "idDogodek");

            RedirectWithCustomURI("EventsForm.aspx", (int)Enums.UserAction.Delete, valueID);
        }