asdio的学习园地

  博客园 :: 首页 :: 联系 :: 订阅 订阅 :: 管理
  36 Posts :: 0 Stories :: 21 Comments :: 0 Trackbacks

公告

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里把列的特性改为中文。

posted on 2009-06-07 23:32 帝之晓 阅读(111) 评论(0) 编辑 收藏