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");
}
}
{
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");
}
}
相关文章推荐
- UltraWebGrid根据单元格内容禁用checkbox列
- UltraWebGrid根据单元格文字长度自适应列宽
- 用javascript将ultrawebgrid单元格的内容设置为超链接
- 在客户端使用javascript遍历Infragistics NetAdvantage UltraWebGrid中每个单元格的内容
- UltraWebGrid禁止编辑单元格
- 点击UltraWebGrid单元格中的链接,下载文件
- UltraWebGrid对行进行初始化-状态字体颜色-单元格内加入链接
- UltraWebGrid单元格中显示链接
- Dev GridControl根据单元格内容进行着色
- 在UltraWebGrid单元格中绑定dropdownlist
- UltraWebGrid 单击单元格进入编辑状态
- 后台获得UltraWebGrid在前台修改过数据的单元格
- 对于UltraWebGrid,如何手动合并行单元格?
- 在UltraWebGrid单元格中绑定WebNumericEdit或其它可编辑控件
- UltraWebGrid单元格中加入超链接
- 在客户端使用javascript遍历UltraWebGrid中每个单元格
- Infragistics控件对UltraWebGrid单元格编辑进行控制及样式设置
- JS实现在UltraWebGrid 中勾选Checkbox 禁止/允许 编辑单元格
- 在UltraWebGrid单元格中绑定dropdownlist
- 关于Infragistics UltraWebGrid 单元格自动换行的问题