【发布时间】:2015-07-15 14:22:54
【问题描述】:
我是这样做的:
if (e.Row.Cells[3].Text != null && e.Row.Cells[3].Text != " "
&& e.Row.Cells[3].Text != "")
{
e.Row.Cells[3].Attributes.Add("readonly", "true");
}
但它不起作用。当单元格为空或包含“ ”时,我需要将 readonly 属性设置为 true。
【问题讨论】:
标签: asp.net gridview boundfield