ASPxGridview怎么根据条件隐藏行
protected void ASPxGridView1_HtmlRowPrepared(object sender, ASPxGridViewTableRowEventArgs e)
{
int s = (int)e.GetValue("TeaID");
if (s > 1001){
e.Row.e.Row.Visible = false;
}
}
protected void ASPxGridView1_HtmlRowPrepared(object sender, ASPxGridViewTableRowEventArgs e)
{
int s = (int)e.GetValue("TeaID");
if (s > 1001){
e.Row.e.Row.Visible = false;
}
}
解决方案 »
- 有关showModalDialog的焦点问题
- treeview单击某个节点时,为什么总是弹出还有treeview的该页面呢?
- 分层多人开发,如何更好的共享一个VS解决方案
- Label显示不出来!
- asp.net引用excel失败,在dcomcnfg添加了aspnet用户还无法访问,急!
- 关于IIS6.0 应用程序隔离模式问题
- 图片显示?
- asp.net中 <td> style样式丢失问题~!
- 没有彻底解决,再问怎样在javascript中获得服务器控件DropDownList的Value(即绑定的ID)值?
- 我有好几个200分得帖子,怎么都给分给不了,莫名其妙错误!!
- c# .net 文件存放到数据库
- 在APP_Code之外的文件夹创建公共类
GridView1.Rows[i].Visible = false;
{
e.DisplayText = "<a href=\"javascript:void(0);\" onclick=\"OnSetRuleClick(this,'" + e.GetFieldValue("ItemID") + "')\">设置规则</a>";
}
else
{
e.DisplayText = "";
}