private void dgvDocumentoPago_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            this.bsDocumentosPagoVenta.EndEdit();

            BEClienteProveedor cliente = new BEClienteProveedor();

            cliente.IdCliente = Convert.ToInt32(cmbClientes.SelectedValue);
            cliente.Nombre    = cmbClientes.Text;
            int cell = dgvDocumentoPago.CurrentRow.Index;
            frmDocumentoPago from = new frmDocumentoPago(this.bsDocumentosPagoVenta, "actualizar", cliente, cell);

            from.Show();
        }
 private void tsbAgregar_Click(object sender, EventArgs e)
 {
     try
     {
         BindingSource      bs      = new BindingSource();
         BEClienteProveedor cliente = new BEClienteProveedor();
         cliente.IdCliente = Convert.ToInt32(cmbClientes.SelectedValue);
         cliente.Nombre    = cmbClientes.SelectedText;
         frmDocumentoPago from = new frmDocumentoPago(bs, "insertar", cliente);
         from.Show();
     }
     catch (Exception ex)
     {
         throw;
     }
 }
        private void dgvDocumentoPago_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            frmDocumentoPago edicion = new frmDocumentoPago(this.bsDocumetosPago);

            edicion.Show();
        }