现在的位置: 首页 > 综合 > 正文

UltraWebGrid动态生成CheckBox

2013年12月09日 ⁄ 综合 ⁄ 共 378字 ⁄ 字号 评论关闭

 1protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)
 2    {
 3        if (e.Row.Band.Index == 0)
 4        {
 5            string str = string.Empty;
 6            str = "<input id='chk" + e.Row.Index + "' type='checkbox' name='chkName" + e.Row.Index + " ' />";
 7            e.Row.Cells[0].Text = str;
 8        }

 9
10    }

11

抱歉!评论已关闭.