Subscribe to Subscribers

Forums » .NET » ASP.NET »

Sample code for filter the data of datatable using dataview


Posted Date: 03 Jun 2009      Posted By:: daya     Member Level: Silver    Member Rank: 0     Points: 1   Responses: 2



hi everybody


I need sample code for filter the datatable using dataview according to particular column value




Responses

#384901    Author: Praveen      Member Level: Gold      Member Rank: 68     Date: 03/Jun/2009   Rating: 2 out of 52 out of 5     Points: 2

hi,

you can try like this

DataRow[] dr=DataTable1.select("ColumnName = '"+Value+"'");

if column is string type then give single quote else not neccessary

is that you are looking for?


 
#384912    Author: daya      Member Level: Silver      Member Rank: 0     Date: 03/Jun/2009   Rating: 2 out of 52 out of 5     Points: 2

no, I am expecting using dataview

 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Code to send/sms password to users
Previous : How to pass one dataset value to another dataset
Return to Discussion Forum
Post New Message
Category:

Related Messages

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Talk to Webmaster Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2013 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.