private void cargaGrillsFiltros()
        {
            //DateTime? fdesde = null;
            //DateTime? fhasta = null;
            double?mDesde = null;
            double?mHasta = null;
            int?   cuit   = null;
            int?   nroDoc = null;

            DateTime fdesde = dtp_desde.Value;
            DateTime fhasta = dtp_hasta.Value;

            String opcion = "Sin Opción";

            if (!string.IsNullOrEmpty(txt_monto_desde.Text))
            {
                mDesde = double.Parse(txt_monto_desde.Text);
            }

            if (!string.IsNullOrEmpty(txt_monto_hasta.Text))
            {
                mHasta = double.Parse(txt_monto_hasta.Text);
            }

            if (!string.IsNullOrEmpty(txt_cuit.Text))
            {
                cuit = int.Parse(txt_cuit.Text);
            }
            if (!string.IsNullOrEmpty(txt_nro_doc.Text))
            {
                nroDoc = int.Parse(txt_nro_doc.Text);
            }
            try
            {
                List <Pedido> perdidos = GestorConsultaPedido.buscarPedidosFiltrados((int)cmb_estado_pedido.SelectedValue, (int)cmb_tipo_doc.SelectedValue, nroDoc, mDesde, mHasta, txt_nombre.Text, txt_apellido.Text, txt_razon_social.Text, cuit, fdesde, fhasta);

                dgv_pedidos.Rows.Clear();
                foreach (Pedido ped in perdidos)
                {
                    switch (ped.estado.idEstado)
                    {
                    case 2:
                        opcion = "Registrar Fin Preparación";
                        break;

                    case 5:
                        opcion = "Registrar Factura";
                        break;

                    case 6:
                        opcion = "Registrar Entrega";
                        break;

                    default:
                        opcion = "Sin Opción";
                        break;
                    }
                    int fila = dgv_pedidos.Rows.Add(ped.idPedido, ped.nroPedido, ped.fechaPedido.ToShortDateString(), ped.estado.Nombre, ped.cliente.RazonSocial, ped.cliente.Nombre, ped.cliente.Apellido, ped.fechaNecesidad.ToShortDateString(), ped.montoTotal, ped.dirEntraga, opcion, ped.estado.idEstado);

                    dgv_pedidos.Rows[fila].DefaultCellStyle.BackColor = Color.Khaki;

                    if (ped.estado.idEstado == 7)
                    {
                        dgv_pedidos.Rows[fila].DefaultCellStyle.BackColor = Color.LightGreen;
                    }
                    if (ped.estado.idEstado == 9 || ped.estado.idEstado == 10)
                    {
                        dgv_pedidos.Rows[fila].DefaultCellStyle.BackColor = Color.LightSalmon;
                    }
                }
            }

            catch (ApplicationException ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
        }