protected override void Editar() { base.Editar(); // Obtenemos el registro seleccionado y lo enviamos a las cajas de texto. try { if (customerInfoListBindingSource.Current == null) { return; } var seleccionado = customerInfoListBindingSource.Current as CustomerInfo; // Cargamos el registro en base al ID. customer = CustomerEdit.GetCustomerEdit(seleccionado.ID); customerEditBindingSource.DataSource = customer; customerEditBindingSource.ResetBindings(false); nameTextBox.Focus(); } catch (DataPortalException ex) { MessageBox.Show(ex.BusinessException.Message, "Editar", MessageBoxButtons.OK, MessageBoxIcon.Information); } }