protected void lbuRefresh_Click(object sender, EventArgs e)
 {
     ClearData();
     ClassGradLev gl = new ClassGradLev();
     DataTable dt = gl.GetGradLev("");
     GridView1.DataSource = dt;
     GridView1.DataBind();
     SetViewState(dt);
 }
 protected void lbuSearch_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(txtSearchGradLevName.Text))
     {
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('กรุณากรอก คำค้นหา')", true);
         return;
     }
     else
     {
         ClassGradLev gl = new ClassGradLev();
         DataTable dt = gl.GetGradLev(txtSearchGradLevName.Text);
         GridView1.DataSource = dt;
         GridView1.DataBind();
         SetViewState(dt);
     }
 }
 void BindData1()
 {
     ClassGradLev gl = new ClassGradLev();
     DataTable dt = gl.GetGradLev(txtSearchGradLevName.Text);
     GridView1.DataSource = dt;
     GridView1.DataBind();
     SetViewState(dt);
 }
 void BindData()
 {
     ClassGradLev gl = new ClassGradLev();
     DataTable dt = gl.GetGradLev("");
     GridView1.DataSource = dt;
     GridView1.DataBind();
     SetViewState(dt);
 }