protected void btnInsertar_Click(object sender, EventArgs e)
        {
            DataTable dt = Session["DevolucionDetalle"] as DataTable;
            DataRow   dr = dt.NewRow();

            dr["Medicamento"] = ((DropDownList)grdDevolucionDetalle.FooterRow.FindControl("ddlInsertMedicamento")).SelectedValue;
            dr["Lote"]        = ((DropDownList)grdDevolucionDetalle.FooterRow.FindControl("ddlInsertLote")).SelectedValue;
            dr["Cantidad"]    = ((TextBox)grdDevolucionDetalle.FooterRow.FindControl("txtInsertCantidad")).Text;
            dr["Motivo"]      = ((TextBox)grdDevolucionDetalle.FooterRow.FindControl("txtInsertMotivo")).Text;
            dr["Eliminar"]    = string.Empty;

            dt.Rows.Add(dr);
            grdDevolucionDetalle.DataSource = dt;
            grdDevolucionDetalle.DataBind();
            Session["DevolucionDetalle"] = dt;

            grdDevolucionDetalle.Rows[0].Visible = false;
            devolucion.DropMedicamento((DropDownList)grdDevolucionDetalle.FooterRow.FindControl("ddlInsertMedicamento"));
            devolucion.DropLote((DropDownList)grdDevolucionDetalle.FooterRow.FindControl("ddlInsertLote"));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            devolucion = new DevolucionAD();

            if (!IsPostBack)
            {
                GridLoad();

                devolucion.DropBodega(ddlBodegaOrigen);
                devolucion.DropProveedor(ddlProveedor);
                devolucion.DropMedicamento((DropDownList)grdDevolucionDetalle.FooterRow.FindControl("ddlInsertMedicamento"));
                devolucion.DropLote((DropDownList)grdDevolucionDetalle.FooterRow.FindControl("ddlInsertLote"));
            }
        }