예제 #1
0
        private void Limpiar()
        {
            //  GridViewPresupuestos.DataSource = null;

            //    GridViewPresupuestos.DataSource = (DataTable)ViewState["Detalle"];
            dt.Rows.Clear();
            GridViewPresupuestos.DataBind();
            MontoTexbo.Text    = "";
            TextBoxID.Text     = "";
            MetaTexbox.Text    = "";
            LogradoTexbox.Text = "";
            TextBoxNombre.Text = "";
            TextFecha.Text     = (DateTime.Now.Year + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day);

            listaRelaciones = new List <Entidades.PresupuestoDetalles>();
        }
예제 #2
0
 protected void BindGrid()
 {
     GridViewPresupuestos.DataSource = (DataTable)ViewState["Detalle"];
     GridViewPresupuestos.DataBind();
 }