Exemplo n.º 1
0
 protected void txtTahun_TextChanged(object sender, EventArgs e)
 {
     if (Page.IsValid)
     {
         doFiltering();
         GVceremony.DataBind();
     }
 }
Exemplo n.º 2
0
 protected void GridView1_RowEditing(object sender, System.Web.UI.WebControls.GridViewEditEventArgs e)
 {
     if (Page.IsValid)
     {
         GVceremony.EditIndex = e.NewEditIndex;
         GVceremony.DataBind();
         this.ScriptManager1.SetFocus(GVceremony.Rows[e.NewEditIndex].Cells[1].FindControl("txtCol1Edit").ClientID);
     }
     else
     {
         e.Cancel = true;
     }
 }
Exemplo n.º 3
0
        protected void txtHalaman_TextChanged(object sender, EventArgs e)
        {
            GridViewRow rowPager   = GVceremony.BottomPagerRow;
            TextBox     txtHalaman = (TextBox)(rowPager.Cells[0].FindControl("txtHalaman"));

            try
            {
                if (int.Parse(txtHalaman.Text) <= GVceremony.PageCount + 1 && int.Parse(txtHalaman.Text) > 0)
                {
                    GVceremony.PageIndex = (int.Parse(txtHalaman.Text)) - 1;
                    GVceremony.DataBind();
                }
            }
            catch (Exception)
            {
                txtHalaman.Text = (GVceremony.PageIndex + 1).ToString();
            }
        }