public void bindgrid(int id) { DataSet ds = XYZLogic.GetFiles(id,1); if (ds.Tables[0].Rows.Count > 0) { grdRegulationFile.DataSource = ds.Tables[0]; grdRegulationFile.DataBind(); } else { grdRegulationFile.DataSource = null; grdRegulationFile.DataBind(); } }
protected void btnSubmit_ServerClick(object sender, EventArgs e) { UC2 ad = new UC2(); ad.bindgrid(1); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)