When I select the register and I choose button OK, the fields are brought up to date. (NavigateToPrimaryKey => OK)However, when I select the register and I give a double click in the grid, the form closes, but it does not bring up to date the fields. (NavigateToPrimaryKey => it does not execute)
I believe that the error is in this point of the function.
Namespace UI.Windows.Forms
<DefaultEvent("RowPopulating")> _
<ToolboxBitmap(GetType(IconFinder), "BrowseDialog.bmp")> _
Public Class BrowseDialog
Public Class BrowseDialog
.....
Public Overridable Function ShowDialog(ByVal PopulateOnShow As Boolean, ByVal ResultsWindowOwner As IWin32Window) As DialogResult
...
'-- Refresh the bound controls
If lnReturn = DialogResult.OK Then
If loForm.SelectedPrimaryKey Is Nothing Then
Me._BusinessObject.Navigate(BusinessNavigationDirection.First)
Else
Me._BusinessObject.NavigateToPrimaryKey(CType(loForm.SelectedPrimaryKey, PrimaryKeyValue).GetValues())
End If
'-- Indicate that the end-user clocked the OK button
loCloseReason = BrowseDialogClosedReasons.UserSelectedResult
Else
loCloseReason = BrowseDialogClosedReasons.UserCancelled
End If
...
End Function
.....
End Class
End Namespace