访问数据集 [英] Access DataSet

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

问题描述



我已经弄清楚了如何使用VB8中的DataSet进行几乎所有操作.我一辈子都无法弄清楚如何返回指定表,行和列中包含的数据.我相信答案真的很简单.

请帮助

Marco

Hi,

I have figured out how to do pretty much everything with DataSets in VB8. I just can''t for the life of me figure out how to return the data contained in specified table, row and column. I’m sure the answer is really simple.

Please Help

Marco

推荐答案

是的,很简单.

正如您所说的,您几乎已经了解了有关DataSet的所有内容,那么对您来说Datatable行/列访问将很容易.
如:
数据集是表(一个或多个)的集合.

C#:
myDataSet.Tables [0].行//第一个表为0.
myDataSet.Tables [0] .Columns//第一个表的0

VB:
myDataSet.Tables(0).Rows
myDataSet.Tables(0).Columns

这应该可以帮助您.

在此处阅读有关VB中数据集和表格的所有信息:数据集的表格 [ ^ ]
Yes it is simple.

As you say you have pretty much figured out *everything* about DataSet, then Datatable row/column access would be easy for you.
As:
Dataset is a collection of tables (one or more).

C#:
myDataSet.Tables[0].Rows //0 for first table.
myDataSet.Tables[0].Columns //0 for first table

VB:
myDataSet.Tables(0).Rows
myDataSet.Tables(0).Columns

This should get you going.

Read all about the Dataset and tables in VB here: The Tables of a Data Set[^]


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

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