Esempio n. 1
0
        void btnInsert_Click(object sender, EventArgs e)
        {
            ButtonEx         btn = (ButtonEx)sender;
            GridViewRow      row = (GridViewRow)btn.NamingContainer;
            GridViewExInsert gv  = (GridViewExInsert)row.NamingContainer;

            if (!btn.IsPageValid())
            {
                return;
            }
            else
            {
                gv.InsertRow(row.RowIndex);
            }
        }
Esempio n. 2
0
        void btnUpdate_Click(object sender, EventArgs e)
        {
            ButtonEx    btn = (ButtonEx)sender;
            GridViewRow row = (GridViewRow)btn.NamingContainer;
            GridViewEx  gv  = (GridViewEx)row.NamingContainer;

            if (!btn.IsPageValid())
            {
                return;
            }
            else
            {
                gv.UpdateRow(row.RowIndex, false);
            }
        }