【发布时间】:2017-08-14 05:42:30
【问题描述】:
我正在尝试显示网格。当我的 ID=0 时,我正在尝试以这种方式应用行过滤器。 不要在网格视图中显示 0 id 的行。
DataSet ds = new DataSet();
ds.ReadXml(Server.MapPath("Contact.xml"));
if (ds.Tables[0].Rows.Count != 0)
{
ds.Tables[0].DefaultView.RowFilter = "ID = 0";
gvfilltempContactus.DataSource = ds.Tables[0].DefaultView;
gvfilltempContactus.DataBind();
}
我不明白如何申请不等于登录。
【问题讨论】:
标签: c# asp.net gridview c#-2.0