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

        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");
            }
        }
posted @ 2009-08-24 08:58  毛小毛  阅读(511)  评论(1编辑  收藏  举报