您的位置:首页 > 其它

UltraWebGrid根据单元格内容禁用checkbox列

2009-08-24 08:58 447 查看
protected void UltraWebGrid1_InitializeRow(object sender, RowEventArgs e)
{
if (!e.Row.Cells.FromKey("SENDSTATUS").Text.Equals("编辑"))
{
(((UltraWebGrid1.Bands[0].Columns[0] as TemplatedColumn).CellItems[e.Row.Index] as CellItem).FindControl("CheckBoxName") as HtmlInputCheckBox).Attributes.Add("disabled", "true");
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: