record navigation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form with a lot of text and combo boxes that display data from 1
record of 1 table. Navigation is handled by a combobox that allows the user
to select from a list of all the primary keys in the table, and then sets the
currencymanager's position to the appropriate value. However, I want
'Unspecified' to be a valid navigation selection -- taking the user to a null
record. I have been doing this by populating the dataset with a null record,
but this seems rather inelegant. It appears setting the
CurrencyManager.Position = -1 doesn't work, so what is the best way to
support such behavior?
 
Thanks for the response.

Attempting the line
CurrencyManager.Position = -1 fails silently, if you actually succeed using
this code maybe it has something to do with my databinding; however, there is
so much code involved that I wouldn't know where to begin listing it.

OTOH, I believe I have solved my problem -- I use
CurrencyManager.SuspendBinding and CurrencyManager.ResumeBinding. This seems
to work like a charms (although I have to do a little tweaking of the
comboboxes to ge them to clear properly)

Thanks again,
 
Back
Top