public void mtdLlenar() { DataSet dsProgrma = new DataSet(); dsProgrma = po.mtdListarProgramas(); GridView1.DataSource = dsProgrma.Tables[0]; GridView1.DataBind(); }
protected void Page_Init(object sender, EventArgs e) { clProgramas objProgramas = new clProgramas(); Global global = new Global(); string a = Application["Id"].ToString(); try { DataSet dsDepartamento = new DataSet(); dsDepartamento = objProgramas.mtdListarProgramas(a); gvProgramas.DataSource = dsDepartamento; gvProgramas.DataBind(); } catch (Exception) { } }