惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Hackread – Cybersecurity News, Data Breaches, AI and More
宝玉的分享
宝玉的分享
月光博客
月光博客
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
A
About on SuperTechFans
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
U
Unit 42
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
N
Netflix TechBlog - Medium
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
V
Visual Studio Blog
腾讯CDC
IT之家
IT之家

博客园 - 帝之晓

Metabase里的 linked filters 使用 EntityFramework 6.0 修改一个已经存在的对象 这个功能是怎么实现的 英语英语。我想要把你学的很牛逼。 PS快捷键大全 附加数据库错误 5102 如何在三个月内获得三年的工作经验(转) sql2005还原数据库 企业库的日志使用 常用的40个网站制作技巧(收藏整理)转 - 帝之晓 - 博客园 asp.net里的基础概念 符合.net准则的事件 BlogEngine数据库结构 XmlSerializer 序列化和反序列化 决定好好研究一些开源的系统 TimeTracker研究 .nettiers里的ServiceLayer和DomainModel 共享软件的十大破解工具 免费的css模板下载
Nettiers的GridViewSearchPanel - 帝之晓 - 博客园
帝之晓 · 2009-06-07 · via 博客园 - 帝之晓

Nettiers里的GridViewSearchPanel是个比较好用的控件,里面设置FieldsToExclue如下:

<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" >
        <FieldsToExclude>
        <data:Field Value="TypeId" />
        </FieldsToExclude>
        </data:GridViewSearchPanel>

即把要排除的列名包含在FieldsToExclude里面。

另外,要使的搜索的列名显示为中文,修改gridviewseachpanel.cs文件里面的 CreateChildControls()方法里面li.Text = EntityHelper.GetPascalSpacedName(cea.Name)为li.Text = EntityHelper.GetEnumTextValue((Enum)c.GetValue(i));

再在entity里把列的特性改为中文。