record navigation

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?
 
P

pmcguire

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top