protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { cargarCombo(ddl_tipoDoc); listDocente = DocenteDao.obtenerTodo(); grillaDocente.DataSource = listDocente; grillaDocente.DataBind(); } }
protected void cargarGrilla() { gv_busqueda.DataSource = DocenteDao.obtenerTodo(); gv_busqueda.DataKeyNames = new string[] { "legajo" }; gv_busqueda.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { listDocente = DocenteDao.obtenerTodo(); grillaDocente.DataSource = listDocente; grillaDocente.DataBind(); }