Thanks!
private void brwProspects_BrowseDialogClosed(MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogClosedEventArgs e)
{
// Copy the data from the prospect search business object
lnClient_pk = boProspectSearch.client_pk;
boClients.CopyDataFrom(boProspectSearch.CurrentDataTable.DefaultView.ToTable(
boClients.NavigateToPrimaryKey(lnClient_pk);
}
(I have also attacherd this image so you don't have to squint )
So you can see that the CurrentRowIndex should be set at this point, so as I mentioned, there could be something else going on here that I cannot see in your snippet. A code sample always helps when trying to work through problems like this. Let me know if this doesn't get you going in the right direction.
OK - I think I know what is happening here. boProspectSearch is based on a ciew so no primary key is specified in the BP mapper. Therefore, loForm.SelectedPrimary key is Nothing .
Is there a way to tell the BO mapper that a field in the view is a primary key?
Thanks a million, Trent! You are my hero!