protected void BtnSerach_Click(object sender, EventArgs e) { DataSet ds = AgreeStatusClass.GetList(Data); GridView1.DataSource = ds; GridView1.DataBind(); // LightBox.Value = "0"; }
public void BindGrid() { ClAgreeStatus cl = new ClAgreeStatus(); cl.AgreementID = AgreementID; DataSet ds = AgreeStatusClass.GetList(cl); DataView dv = new DataView(ds.Tables[0]); if (ViewState["AgreeStatus "] == null) { ViewState["AgreeStatus"] = "AgreeStatus Desc"; } dv.Sort = Securenamespace.SecureData.CheckSecurity(ViewState["AgreeStatus"].ToString()).ToString(); GridView1.DataSource = dv; GridView1.DataBind(); }