473,473 Members | 1,776 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VB.NET - currency manager position

Hi,
Pls. answer to this question? Does the position change of
the currency manager affect the Dataset. Since I wanted to
use the HasChanges method of the dataset to check whether
is there any changes made in the dataset or not? But even
though i dint do any changes in the Dataset, but the
currency mgr. position changes the state of the Dataset as
Modified. Is this behaviour is correct? or what is the
solution for that?

DonRamesh
Nov 20 '05 #1
12 7545
Hi Ramesh,

In my opinion it should be something else, changing the currency position
does as far as I know nothing to the rowstate of a datatable in a dataset.

Show some code if you want some help (not a whole program please and first
pasted in a notebook to get not 3 rows on 1 page in my OE)?

Cor
Pls. answer to this question? Does the position change of
the currency manager affect the Dataset. Since I wanted to
use the HasChanges method of the dataset to check whether
is there any changes made in the dataset or not? But even
though i dint do any changes in the Dataset, but the
currency mgr. position changes the state of the Dataset as
Modified. Is this behaviour is correct? or what is the
solution for that?

Nov 20 '05 #2
Hi Ramesh,

In my opinion it should be something else, changing the currency position
does as far as I know nothing to the rowstate of a datatable in a dataset.

Show some code if you want some help (not a whole program please and first
pasted in a notebook to get not 3 rows on 1 page in my OE)?

Cor
Pls. answer to this question? Does the position change of
the currency manager affect the Dataset. Since I wanted to
use the HasChanges method of the dataset to check whether
is there any changes made in the dataset or not? But even
though i dint do any changes in the Dataset, but the
currency mgr. position changes the state of the Dataset as
Modified. Is this behaviour is correct? or what is the
solution for that?

Nov 20 '05 #3
Hi Cor Ligthert,
Here is my code

Private Sub BindData(Optional ByVal Pos As Integer = 0)
If bolCurMgr = False Then
Call ClearBinding()
txtType.DataBindings.Add(New Binding("Text", _dtAmenity,
"AMT_TYPE"))
If strFrmState <> "A" Then
txtType.DataBindings.Add(New Binding("Tag", _dtAmenity,
"ROWID"))
End If
txtDesc.DataBindings.Add(New Binding("Text", _dtAmenity,
"AMT_DESC"))
_curManager = CType(Me.BindingContext(_dtAmenity),
CurrencyManager)
_curManager.Position = Pos
End If
End Sub
I have debugged care fully and checked each and every line for the
rowstate behaviour, the state was unchanged till the line

_curManager = CType(Me.BindingContext(_dtAmenity), CurrencyManager)

but after executing the line
_curManager.Position = Pos

the has changes property of the dataset becomes modified

....
DonRamesh

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #4
Hi Cor Ligthert,
Here is my code

Private Sub BindData(Optional ByVal Pos As Integer = 0)
If bolCurMgr = False Then
Call ClearBinding()
txtType.DataBindings.Add(New Binding("Text", _dtAmenity,
"AMT_TYPE"))
If strFrmState <> "A" Then
txtType.DataBindings.Add(New Binding("Tag", _dtAmenity,
"ROWID"))
End If
txtDesc.DataBindings.Add(New Binding("Text", _dtAmenity,
"AMT_DESC"))
_curManager = CType(Me.BindingContext(_dtAmenity),
CurrencyManager)
_curManager.Position = Pos
End If
End Sub
I have debugged care fully and checked each and every line for the
rowstate behaviour, the state was unchanged till the line

_curManager = CType(Me.BindingContext(_dtAmenity), CurrencyManager)

but after executing the line
_curManager.Position = Pos

the has changes property of the dataset becomes modified

....
DonRamesh

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #5
Hi,
The code is

Private Sub BindData(Optional ByVal Pos As Integer = 0)
'Dim _dtTenantType As New DataTable
'_dtTenantType = _dsTenantType.Tables(0)
If bolCurMgr = False Then
Call ClearBinding()
txtType.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_TYPE"))
If strFrmState <> "A" Then
txtType.DataBindings.Add(New Binding
("Tag", _dtTenantType, "ROWID"))
End If
txtDesc.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_DESC"))
_curManager = CType(Me.BindingContext
(_dtTenantType), CurrencyManager)
_curManager.Position = Pos
'_dsTenantType.RejectChanges() '$$
End If
End Sub

I have debugged line by line, and checked the status of
the haschanges property of the Dataset, till that line
_curManager = CType(Me.BindingContext(_dtTenantType),
CurrencyManager), it showed unchanged,
but after executing the line
_curManager.Position = Pos
the haschanges property changes to Modified

DonRamesh

-----Original Message-----
Hi Ramesh,

In my opinion it should be something else, changing the currency positiondoes as far as I know nothing to the rowstate of a datatable in a dataset.
Show some code if you want some help (not a whole program please and firstpasted in a notebook to get not 3 rows on 1 page in my OE)?
Cor
Pls. answer to this question? Does the position change of the currency manager affect the Dataset. Since I wanted to use the HasChanges method of the dataset to check whether is there any changes made in the dataset or not? But even though i dint do any changes in the Dataset, but the
currency mgr. position changes the state of the Dataset as Modified. Is this behaviour is correct? or what is the
solution for that?

.

Nov 20 '05 #6
Hi,
The code is

Private Sub BindData(Optional ByVal Pos As Integer = 0)
'Dim _dtTenantType As New DataTable
'_dtTenantType = _dsTenantType.Tables(0)
If bolCurMgr = False Then
Call ClearBinding()
txtType.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_TYPE"))
If strFrmState <> "A" Then
txtType.DataBindings.Add(New Binding
("Tag", _dtTenantType, "ROWID"))
End If
txtDesc.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_DESC"))
_curManager = CType(Me.BindingContext
(_dtTenantType), CurrencyManager)
_curManager.Position = Pos
'_dsTenantType.RejectChanges() '$$
End If
End Sub

I have debugged line by line, and checked the status of
the haschanges property of the Dataset, till that line
_curManager = CType(Me.BindingContext(_dtTenantType),
CurrencyManager), it showed unchanged,
but after executing the line
_curManager.Position = Pos
the haschanges property changes to Modified

DonRamesh

-----Original Message-----
Hi Ramesh,

In my opinion it should be something else, changing the currency positiondoes as far as I know nothing to the rowstate of a datatable in a dataset.
Show some code if you want some help (not a whole program please and firstpasted in a notebook to get not 3 rows on 1 page in my OE)?
Cor
Pls. answer to this question? Does the position change of the currency manager affect the Dataset. Since I wanted to use the HasChanges method of the dataset to check whether is there any changes made in the dataset or not? But even though i dint do any changes in the Dataset, but the
currency mgr. position changes the state of the Dataset as Modified. Is this behaviour is correct? or what is the
solution for that?

.

Nov 20 '05 #7
Hi,
The code is

Private Sub BindData(Optional ByVal Pos As Integer = 0)
'Dim _dtTenantType As New DataTable
'_dtTenantType = _dsTenantType.Tables(0)
If bolCurMgr = False Then
Call ClearBinding()
txtType.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_TYPE"))
If strFrmState <> "A" Then
txtType.DataBindings.Add(New Binding
("Tag", _dtTenantType, "ROWID"))
End If
txtDesc.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_DESC"))
_curManager = CType(Me.BindingContext
(_dtTenantType), CurrencyManager)
_curManager.Position = Pos
'_dsTenantType.RejectChanges() '$$
End If
End Sub

I have debugged line by line, and checked the status of
the haschanges property of the Dataset, till that line
_curManager = CType(Me.BindingContext(_dtTenantType),
CurrencyManager), it showed unchanged,
but after executing the line
_curManager.Position = Pos
the haschanges property changes to Modified

DonRamesh
-----Original Message-----
Hi Ramesh,

In my opinion it should be something else, changing the currency positiondoes as far as I know nothing to the rowstate of a datatable in a dataset.
Show some code if you want some help (not a whole program please and firstpasted in a notebook to get not 3 rows on 1 page in my OE)?
Cor
Pls. answer to this question? Does the position change of the currency manager affect the Dataset. Since I wanted to use the HasChanges method of the dataset to check whether is there any changes made in the dataset or not? But even though i dint do any changes in the Dataset, but the
currency mgr. position changes the state of the Dataset as Modified. Is this behaviour is correct? or what is the
solution for that?

.

Nov 20 '05 #8
Hi,
The code is

Private Sub BindData(Optional ByVal Pos As Integer = 0)
'Dim _dtTenantType As New DataTable
'_dtTenantType = _dsTenantType.Tables(0)
If bolCurMgr = False Then
Call ClearBinding()
txtType.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_TYPE"))
If strFrmState <> "A" Then
txtType.DataBindings.Add(New Binding
("Tag", _dtTenantType, "ROWID"))
End If
txtDesc.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_DESC"))
_curManager = CType(Me.BindingContext
(_dtTenantType), CurrencyManager)
_curManager.Position = Pos
'_dsTenantType.RejectChanges() '$$
End If
End Sub

I have debugged line by line, and checked the status of
the haschanges property of the Dataset, till that line
_curManager = CType(Me.BindingContext(_dtTenantType),
CurrencyManager), it showed unchanged,
but after executing the line
_curManager.Position = Pos
the haschanges property changes to Modified

DonRamesh
-----Original Message-----
Hi Ramesh,

In my opinion it should be something else, changing the currency positiondoes as far as I know nothing to the rowstate of a datatable in a dataset.
Show some code if you want some help (not a whole program please and firstpasted in a notebook to get not 3 rows on 1 page in my OE)?
Cor
Pls. answer to this question? Does the position change of the currency manager affect the Dataset. Since I wanted to use the HasChanges method of the dataset to check whether is there any changes made in the dataset or not? But even though i dint do any changes in the Dataset, but the
currency mgr. position changes the state of the Dataset as Modified. Is this behaviour is correct? or what is the
solution for that?

.

Nov 20 '05 #9
Hi,
The code is

Private Sub BindData(Optional ByVal Pos As Integer = 0)
If bolCurMgr = False Then
Call ClearBinding()
txtType.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_TYPE"))
If strFrmState <> "A" Then
txtType.DataBindings.Add(New Binding
("Tag", _dtTenantType, "ROWID"))
End If
txtDesc.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_DESC"))
_curManager = CType(Me.BindingContext
(_dtTenantType), CurrencyManager)
_curManager.Position = Pos
End If
End Sub

I have debugged line by line, and checked the status of
the haschanges property of the Dataset, till that line
_curManager = CType(Me.BindingContext(_dtTenantType),
CurrencyManager), it showed unchanged,
but after executing the line
_curManager.Position = Pos
the haschanges property changes to Modified

DonRamesh
-----Original Message-----
Hi Ramesh,

In my opinion it should be something else, changing the currency positiondoes as far as I know nothing to the rowstate of a datatable in a dataset.
Show some code if you want some help (not a whole program please and firstpasted in a notebook to get not 3 rows on 1 page in my OE)?
Cor
Pls. answer to this question? Does the position change of the currency manager affect the Dataset. Since I wanted to use the HasChanges method of the dataset to check whether is there any changes made in the dataset or not? But even though i dint do any changes in the Dataset, but the
currency mgr. position changes the state of the Dataset as Modified. Is this behaviour is correct? or what is the
solution for that?

.

Nov 20 '05 #10
Hi,
The code is

Private Sub BindData(Optional ByVal Pos As Integer = 0)
If bolCurMgr = False Then
Call ClearBinding()
txtType.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_TYPE"))
If strFrmState <> "A" Then
txtType.DataBindings.Add(New Binding
("Tag", _dtTenantType, "ROWID"))
End If
txtDesc.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_DESC"))
_curManager = CType(Me.BindingContext
(_dtTenantType), CurrencyManager)
_curManager.Position = Pos
End If
End Sub

I have debugged line by line, and checked the status of
the haschanges property of the Dataset, till that line
_curManager = CType(Me.BindingContext(_dtTenantType),
CurrencyManager), it showed unchanged,
but after executing the line
_curManager.Position = Pos
the haschanges property changes to Modified

DonRamesh
-----Original Message-----
Hi Ramesh,

In my opinion it should be something else, changing the currency positiondoes as far as I know nothing to the rowstate of a datatable in a dataset.
Show some code if you want some help (not a whole program please and firstpasted in a notebook to get not 3 rows on 1 page in my OE)?
Cor
Pls. answer to this question? Does the position change of the currency manager affect the Dataset. Since I wanted to use the HasChanges method of the dataset to check whether is there any changes made in the dataset or not? But even though i dint do any changes in the Dataset, but the
currency mgr. position changes the state of the Dataset as Modified. Is this behaviour is correct? or what is the
solution for that?

.

Nov 20 '05 #11
Hi Ramesh,

There is a fact about it, it says something else, however the behaviour is
the same
http://support.microsoft.com/default...b;en-us;317254

I added the corrections in your program.

I hope this helps?

Cor

\\\
Private Sub BindData(Optional ByVal Pos As Integer = 0)
If bolCurMgr = False Then
Call ClearBinding()
txtType.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_TYPE"))
If strFrmState <> "A" Then
txtType.DataBindings.Add(New Binding
("Tag", _dtTenantType, "ROWID"))
AddHandler txtType.DataBindings("Tag").Parse, AddressOf parseit
)
) End If
End Sub

Sub parseit(ByVal o As Object, ByVal e As ConvertEventArgs)
Throw New Exception
End Sub
///
Nov 20 '05 #12
Hi Ramesh,

There is a fact about it, it says something else, however the behaviour is
the same
http://support.microsoft.com/default...b;en-us;317254

I added the corrections in your program.

I hope this helps?

Cor

\\\
Private Sub BindData(Optional ByVal Pos As Integer = 0)
If bolCurMgr = False Then
Call ClearBinding()
txtType.DataBindings.Add(New Binding("Text",
_dtTenantType, "TEN_TYPE"))
If strFrmState <> "A" Then
txtType.DataBindings.Add(New Binding
("Tag", _dtTenantType, "ROWID"))
AddHandler txtType.DataBindings("Tag").Parse, AddressOf parseit
)
) End If
End Sub

Sub parseit(ByVal o As Object, ByVal e As ConvertEventArgs)
Throw New Exception
End Sub
///
Nov 20 '05 #13

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

Similar topics

6
by: Marina | last post by:
Hi, Let's say I have one datatable, that I want to use as the datasource for 2 dropdowns. So both are bound to the same one. But now, when I select a row in dropdown A, the selected row in...
1
by: Rich | last post by:
Hello, I have a datagrid (drg1) on a form and displays 6 records. I can set the row pointer (select row) with the currency manager(cma) as follows: cma.Position += 1...
12
by: Ramesh | last post by:
Hi, Pls. answer to this question? Does the position change of the currency manager affect the Dataset. Since I wanted to use the HasChanges method of the dataset to check whether is there any...
1
by: Manuel Canas | last post by:
I'm stuck here guys, need some help. I have a form with a couple fo tabs on it. I load a table in each for each tab. I populate a listbox with a list of names. Then I use currency manager to...
0
by: Dennis | last post by:
I seem to be able to instantiate a currency manager from a bindingcontext using an arraylist but changes I make to the arraylist don't seem to trigger any of the Currency manager's events. ...
1
by: Doug Bell | last post by:
Hi, Hi had a DataGrid on a form and was using the CurrentCellChanged Event to determine the selected row: Private Sub grdSelOrd_CurrentCellChanged(ByVal sender As System.Object, _ ByVal e As...
5
by: Theodore | last post by:
Hi, i have a class "MyClass" with a public property of datatable type. I also have a form with a public property of type "MyClass". The form has a datagrid which binds to MyClass.Table datatable....
1
by: Jim | last post by:
Hi, Trying to implement databinding. I've a dataset with a table, a windows form with typical controls: combobox, datetimepicker, textbox . . . I use what I think is a normal method to...
0
by: John | last post by:
Hi I have a winform app with fields bound to a backbend db via a currency manager (System.Windows.Forms.CurrencyManager). The app generally works fine but in a specific instance where I select...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.