Esempio n. 1
0
        protected void BtnSerach_Click(object sender, EventArgs e)
        {
            DataSet ds = AgreeStatusClass.GetList(Data);

            GridView1.DataSource = ds;
            GridView1.DataBind();
            //   LightBox.Value = "0";
        }
Esempio n. 2
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();
        }