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 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?
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?
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!
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!
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?
.
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?
.
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?
.
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?
.
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?
.
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?
.
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
///
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
/// This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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...
|
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. ...
| |
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...
|
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....
|
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...
|
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...
|
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,...
|
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,...
| |
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |