473,382 Members | 1,258 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

CurrencyManager Refresh After New DataRow

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?
Apr 18 '06 #1
3 4377
Have you refreshed the currencymanager?

--
James Jenkins
http://www.tamarsolutions.co.uk
"Brian Richardson" <Br*************@discussions.microsoft.com> wrote in
message news:6C**********************************@microsof t.com...
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?

Apr 18 '06 #2
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?

"ja***@tamarsolutions.co.uk" wrote:
Have you refreshed the currencymanager?

--
James Jenkins
http://www.tamarsolutions.co.uk
"Brian Richardson" <Br*************@discussions.microsoft.com> wrote in
message news:6C**********************************@microsof t.com...
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?


Apr 20 '06 #3
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.

"Brian Richardson" wrote:
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?

"ja***@tamarsolutions.co.uk" wrote:
Have you refreshed the currencymanager?

--
James Jenkins
http://www.tamarsolutions.co.uk
"Brian Richardson" <Br*************@discussions.microsoft.com> wrote in
message news:6C**********************************@microsof t.com...
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?


Apr 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Kris Bethea via DotNetMonster.com | last post by:
Greetings, I have a VB.NET program that I am trying to convert to C# (my office decided that we are going to use C# from now on). I've only been working with C# for about a month now, so this...
2
by: web1110 | last post by:
I created a class derived from a DataGridTextBoxColumn. I have it working through looking at various examples on the net. To update the underlying DataGrid, I had to overload the Edit method...
5
by: Christopher Weaver | last post by:
I have a CM bound to a table like this: cMgrSort = (CurrencyManager)this.BindingContext; Under certain circumstances I need to find a specific row in that table DataRow r =...
10
by: D | last post by:
hi I have a form with 2 datagrids showing related table data in a master / child or order / order details type relationship. I would like to auto select the row in the order details table which...
7
by: Juan Romero | last post by:
Hey guys, please HELP I am going nuts with the datagrid control. I cannot get the damn control to refresh. I am using soap to get information from a web service. I have an XML writer output...
0
by: thomasp | last post by:
This is a two part question, 1) The code below should display a form with a datagridview and a few command buttons. This form should allow the user to make change to the records displayed in...
2
by: Rich | last post by:
Hello, Following an example at http://www.vb-tips.com/dbpages.aspx?IA=DG (by Cor Lightert and Ken Tucker) on binding a dataRelation to a Datagridview for sqlClient, I was able to view rows...
5
by: hartley_aaron | last post by:
Hi, CurrencyManger has a method called AddNew which well create a new record in the data that it is bound to (ie a new datarow in a table). The new record has null values for all of its...
6
by: George | last post by:
Hi, I have been encountering a refresh problem with DataGridView, which is bound to a DataTable. When I make updates (Add, Delete, update) to the DataGridView, everything flow nicely to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.