数据集包含多个数据,我想用数据集对其中之一进行校验和变型,如何将所有数据集值ine加一 [英] dataset contain multiple data i want to cheack and varified one of the data with dataset how i get all dataset value ine by one

查看:79
本文介绍了数据集包含多个数据,我想用数据集对其中之一进行校验和变型,如何将所有数据集值ine加一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在我的应用程序中,我遇到这种问题.


in my application i face this kind of problem .

if (path == dsAccessdenied.Tables[0].Columns[0].ToString())


具有一个值的路径.我想检查天气数据集是否包含那些数据,我如何检查.dataset是否包含多个数据,我要检查并用数据集修改其中一个数据,我如何将所有数据集的值都按一获取

,
path having one values. i want to check weather dataset contain those data or not how i cheack .dataset contain multiple data i want to cheack and varified one of the data with dataset how i get all dataset value ine by one

推荐答案

使用Select方法获取按路径过滤的数据,然后获取计数,如果计数大于1,则路径值在dataset-datatable中重复

引用 http://msdn.microsoft.com/en-us/library/system.data .datatable.select [ ^ ]
Use Select Method to get the data filtered by the path and then get the count, if the count greater than one then path value is duplicated in the dataset-datatable

Ref http://msdn.microsoft.com/en-us/library/system.data.datatable.select[^]


Dim ObjDataRows As DataRow()= dsAccessdenied.Tables("TableName").Select("ColumnName =''"&Path&'')
Dim ObjDataRows As DataRow() = dsAccessdenied.Tables("TableName").Select("ColumnName =''" & Path & "'')


这篇关于数据集包含多个数据,我想用数据集对其中之一进行校验和变型,如何将所有数据集值ine加一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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