数据表如何使用C#过滤asp.net中的特定行 [英] data table how to filter particular row in asp.net using C#
本文介绍了数据表如何使用C#过滤asp.net中的特定行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
数据表如何使用C#过滤asp.net中的特定行?使用断开连接的体系结构
data table how to filter particular row in asp.net using C#? using disconnected architecture
推荐答案
DataSet.Tables[0].DefaultView.RowFilter="Field=1"
>
System.Data.DataTable dtNew = dt.Select().Where(x => x["columnName"].ToString() == "filetervalue").ToArray<System.Data.DataRow>().Cast<System.Data.DataTable>();
http://asp-net-example.blogspot.in/2011/05/how-to-use- dataview-rowfilter-property.html [ ^ ]
http://pankajlalwani.wordpress.com/2010/02/08/usi ng-dataview-rowfilter-syntax-in-asp-net-c / [ ^ ]
这篇关于数据表如何使用C#过滤asp.net中的特定行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文