当前位置:编程学习 > C#/ASP.NET >>

ASPxGridview怎么根据条件隐藏行

ASPxGridview怎么根据条件隐藏行  
protected void ASPxGridView1_HtmlRowPrepared(object sender, ASPxGridViewTableRowEventArgs e)
        {
            int s = (int)e.GetValue("TeaID");
            if (s > 1001){
                e.Row.e.Row.Visible = false;
                 }
        } --------------------编程问答-------------------- --------------------编程问答-------------------- if(i==10)
GridView1.Rows[i].Visible = false; --------------------编程问答-------------------- 是aspxgridview  不是gridview啊   --------------------编程问答-------------------- if (e.GetFieldValue("ItemType").ToString().Equals("1"))
            {
                e.DisplayText = "<a href=\"javascript:void(0);\" onclick=\"OnSetRuleClick(this,'" + e.GetFieldValue("ItemID") + "')\">设置规则</a>";
            }
            else
            {
                e.DisplayText = "";
            }
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,