void BindData() { ClassPosition p = new ClassPosition(); DataTable dt = p.GetPosition("", "", ""); GridView1.DataSource = dt; GridView1.DataBind(); SetViewState(dt); }
protected void btnSearchRefresh_Click(object sender, EventArgs e) { ClearData(); ClassPosition p = new ClassPosition(); DataTable dt = p.GetPosition("", "", ""); GridView1.DataSource = dt; GridView1.DataBind(); SetViewState(dt); }