Yes, I looked at the example. I understand the handlers for the next etc under the grid. My question regards having the change of row in the grid cause bound controls on the form for an individual record refresh as the grid row changes.
In the sample I tried putting a couple of textboxes on the form below the grid, bindign them to company and last name and with your grid I got the expected behavior - i.e. as the row changed in the grid the bound control changed. Since they are looking at the same currentdatatable I would expect them to be in sync.
But I don't get that behavior in the form I am attempting. I have a standard maintenance form with customer fields. I setup a browsedialog which works fine to retrive records. So far so good.
So then I dropped DataGridView onto the form, set up a BusinessBindingSource to CustomersBO1 and set the datasource for the grid to the BBS. Now when I return from the BrowseDialog I have the right record in the bound fields, the right set of records in the grid, but they are not in sync and navigating in the grid does not refresh the displayed record.
( exception is if I scroll down the grid to EOF I have both a blank grid row and blank bound controls )
Remember, I'm a .NET idiot still thinking VFP
I don't see anything in the sample in that respect and yet it works there as I would expect but not in mine. Any hints as to where I should look for what I have obviously left out ?
The only code i see in the sample that might (?) be relevant if I understood it is
'''
''' When the row changes within the grid, the Navigated event will fire
''' '''
'''
Private Sub Customers_Navigated(ByVal e As MicroFour.StrataFrame.Business.NavigatedEventArgs) Handles Customers.Navigated
Me.lblRowIndex.Text = Me.Customers.CurrentRowIndex.ToString()
End Sub
TIA for you patience.