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达到隐藏的目的。