FineUI Grid中WindowField根据列数据决定是否Enalble

前台页面Grid控件中设置OnPreRowDataBound属性,windowFile控件设置ID     

  protected void Grid1_PreRowDataBound(object sender, FineUI.GridPreRowEventArgs e)        

  {            

     InspectionLog log = e.DataItem as InspectionLog;           

      WindowField winField = Grid1.FindColumn("winField") as WindowField;

          if ((log.handleStatus).Trim().Substring(0,1)  == "0")                     

       winField.Enabled=false;              

    else                

      winField.Enabled = true;        

  }

但无法使用Hidden达到隐藏的目的。

posted on 2014-10-28 15:46  xihong  阅读(517)  评论(0编辑  收藏  举报

导航