从dataSet读取数据 [英] Read data from dataSet

查看:286
本文介绍了从dataSet读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个dataSet和两个表(父子表)并在它们之间设置了一个

的关系(调用father_uid(int))。


有什么简单的方法,我可以得到行数据包括父子

表项。

(不要使用dataGuid)

eq

father_uid,father_field1,father_field2,son_field1,son_field2

1" ABCD" 123.00XXXX 456.00

1" ABCD" 123.00YYYY 567.00

2" DEFG" 567.00aaaa 456.00

2" DEFG" 567.00bbbb 567.00

2" DEFG" 567.00cccc 999.00


感谢您的帮助。

I have create a dataSet and two table (father and son table) and set a
relationship between them (call father_uid (int)).

Is there any simple way, that I can get the row data include father and son
table items.
(do not use dataGuid)
eq

father_uid, father_field1,father_field2,son_field1,son_field2
1 "ABCD" 123.00 "XXXX" 456.00
1 "ABCD" 123.00 "YYYY" 567.00
2 "DEFG" 567.00 "aaaa" 456.00
2 "DEFG" 567.00 "bbbb" 567.00
2 "DEFG" 567.00 "cccc" 999.00

Thank for the help.

推荐答案

Fox,


通常你应该能够使用getchildrows来获取它
http://msdn.microsoft.com/library/de...drowstopic.asp


或/和

getparentrow
http://msdn.microsoft.com/library/de...ntrowtopic.asp


我希望这有帮助


Cor
Fox,

Normally you should be able to get it using the getchildrows
http://msdn.microsoft.com/library/de...drowstopic.asp

or/and
the getparentrow
http://msdn.microsoft.com/library/de...ntrowtopic.asp

I hope this helps

Cor


感谢您的回复。它适用于普通的dataSet,但不适用于

ds(读取XML文件)。最后谢谢你的支持。这对我来说非常有用




最好的问候

Fox

" Cor Ligthert" ; <无************ @ planet.nl> ?g?ó?l¥ó·s?D:嗯************** @ tk2msftngp13.phx.g bl ...
Thank you for your reply. It is work for normal dataSet, but don''t work for
ds( read XML file). Finally thank you for you support. It is quite useful
for me.

Best Regards
Fox
"Cor Ligthert" <no************@planet.nl> ???g?ó?l¥ó·s?D:uH**************@tk2msftngp13.phx.g bl...
Fox,

通常你应该能够使用getchildrows来获取它
http://msdn.microsoft.com/library/de...drowstopic.asp
< getparentrow
http://msdn.microsoft.com/library/de...ntrowtopic.asp

我希望这会有所帮助

Cor
Fox,

Normally you should be able to get it using the getchildrows
http://msdn.microsoft.com/library/de...drowstopic.asp

or/and
the getparentrow
http://msdn.microsoft.com/library/de...ntrowtopic.asp

I hope this helps

Cor



Fox,


您在阅读之前是否写过该数据集它与重载的方法

也写了架构?


Cor
Fox,

Did you write that dataset before you read it with the overloaded method to
write the schema as well?

Cor


这篇关于从dataSet读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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