Example #1
0
        void BindData()
        {
            ClassDistrict d  = new ClassDistrict();
            DataTable     dt = d.GetDistrict("", "", "", "", "", "", "");

            GridView1.DataSource = dt;
            GridView1.DataBind();
            SetViewState(dt);
        }
Example #2
0
        protected void btnSearchRefresh_Click(object sender, EventArgs e)
        {
            ClearData();
            ClassDistrict d  = new ClassDistrict();
            DataTable     dt = d.GetDistrict("", "", "", "", "", "", "");

            GridView1.DataSource = dt;
            GridView1.DataBind();
            SetViewState(dt);
        }