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