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"); } }