Ejemplo n.º 1
0
    //Bind data
    private void BindData(string danwei, string zenren)
    {
        U_ZCBU  zc1 = new U_ZCBU();
        DataSet ds1 = zc1.GetDepartZc(User.Identity.Name, danwei, zenren);

        this.GridView1.DataSource = ds1;
        this.GridView1.DataBind();
        zc1.Close();
        ds1.Dispose();
    }