CurrencyManager Refresh After New DataRow

G

Guest

Hi,

Please can anyone kindly offer some suggestions as to why the
CurrencyManager might not refresh.

I am using the CurrencyManager to navigate through a DataView. I am aware
that there is an issue when adding a new record with using bound CheckBoxes
('http://support.microsoft.com/default.aspx?scid=kb;en-us;326440'). Due to
this problem, I have decided to drop the DataBindings from my controls, clear
the values, and attempt to re-bind them after adding a new record.

Unfortunately, after doing so, the CurrencyManager fails to acknowledge that
the new record exists within the DataView( DataTable).

Is there an issue with using a DataView with the CurrencyManager?
 
G

Guest

Yes I have. The record exists within the DataTable. There is however a
Primary Key on the DataTable, and quite obviously the value is set to NULL
for the new record. I assume this would not be the cause of my problem?
 
G

Guest

I have managed to determine the cause of my troubles.

It is purely due to some of the 3rd party controls we are using. When I
attempt to add a new record, it is added, but the CurrencyManager failed to
position change to the new record because some of the 3rd party controls
behave in a similar fashion to the CheckBox.
 

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