Ejemplo n.º 1
0
        public void BindGrid()
        {
            ClAgreementFine cl = new ClAgreementFine();

            if (NotDefaultAgree == false)
            {
                cl.AgreementID = 0;
            }
            else
            {
                cl.AgreementID = Convert.ToInt32(AgreementID);
            }


            DataSet  ds = AgreementFineClass.GetList(cl);
            DataView dv = new DataView(ds.Tables[0]);

            if (ViewState["AgreementFineID"] == null)
            {
                ViewState["AgreementFineID"] = "AgreementFineID Desc";
            }
            dv.Sort = Securenamespace.SecureData.CheckSecurity(ViewState["AgreementFineID"].ToString()).ToString();
            GridView1.DataSource = dv;
            GridView1.DataBind();
        }
Ejemplo n.º 2
0
        protected void BtnSerach_Click(object sender, EventArgs e)
        {
            DataSet ds = AgreementFineClass.GetList(Data);

            GridView1.DataSource = ds;
            GridView1.DataBind();
            LightBox.Value = "0";
        }