VB.NET - 货币经理职位 [英] VB.NET - currency manager position

查看:43
本文介绍了VB.NET - 货币经理职位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



请帮助。回答这个问题?货币经理的头寸变化是否会影响数据集。由于我想要
使用数据集的HasChanges方法来检查是否在数据集中是否有任何更改?但是,即使我在数据集中进行任何更改,但是

货币mgr。 position将数据集的状态更改为

已修改。这种行为是否正确?或者什么是

解决方案?


DonRamesh

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

推荐答案

嗨Ramesh,


在我看来它应该是别的东西,改变货币位置

就我对数据库的rowstate一无所知一个数据集。


如果你需要一些帮助,请显示一些代码(不是整个程序,请先将

粘贴在笔记本中,以便在1上获得3行我的OE页面?


Cor
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
请。回答这个问题?货币经理的头寸变化是否会影响数据集。由于我想使用数据集的HasChanges方法来检查数据集中是否有任何更改?但是即使我在数据集中做了任何改变,但是
货币mgr。 position将数据集的状态更改为
Modified。这种行为是否正确?或者是什么解决方案?
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?



嗨Ramesh,


在我看来应该是别的东西,改变货币位置

就我对数据集中数据表的rowstate一无所知。


显示一些代码如果你想要一些帮助(不是整个程序,请先将

粘贴在笔记本上,在我的OE中1页上不要3行)?


Cor
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
请。回答这个问题?货币经理的头寸变化是否会影响数据集。由于我想使用数据集的HasChanges方法来检查数据集中是否有任何更改?但是即使我在数据集中做了任何改变,但是
货币mgr。 position将数据集的状态更改为
Modified。这种行为是否正确?或是什么是
解决方案?
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,

这是我的代码


Private Sub BindData(可选ByVal Pos As Integer = 0)

如果bolCurMgr = False那么

调用ClearBinding()

txtType.DataBindings.Add(New Binding(" Text",_ dtAmenity,

" AMT_TYPE"))

如果strFrmState<> " A"然后

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

结束如果

结束Sub

我已经完全调试了护理并检查了每一行的

rowstate行为,状态没有改变直到行


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


但是在执行该行之后

_curManager.Position = Pos

数据集的更改属性被修改


....

DonRamesh


***通过开发人员发送的指南 http://www.developersdex.com ***

不要只是参加USENET ......获得奖励!
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!


这篇关于VB.NET - 货币经理职位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆