Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
in my application i face this kind of problem .
C#
if (path == dsAccessdenied.Tables[0].Columns[0].ToString())
,
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
Posted
Updated 25-Jul-12 0:01am
v2

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[^]
 
Share this answer
 
Dim ObjDataRows As DataRow() = dsAccessdenied.Tables("TableName").Select("ColumnName ='" & Path & "')
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900