1、js操作
var cell = //你要操作的cell
1)、获取某个单元格的值
var value = cell.Row.getCellFromKey("Modify").getValue();
2)、为某个单元格赋值
cell.Row.getCellFromKey("Modify").setValue("test");
2、后台代码操作
1)新增一列,并且设置列的属性
base.AddGridColumn(UltraWebGrid1, "",LmsTrainplanClassSchema.LMS_TRAINPLAN_CLASS_PLAN_CLASS_ID, 80, index++, true);
base.AddGridColumn(UltraWebGrid1, "自动创建班级计划", "AutoCreateClassPlan", 80, index++, false);
UltraWebGrid1.Columns[index - 1].Width = Unit.Percentage(10);
UltraWebGrid1.Columns[index - 1].AllowUpdate = AllowUpdate.Yes;
UltraWebGrid1.Columns[index - 1].Type = ColumnType.DropDownList;
ValueList vlist2 = new ValueList();
vlist2 = UltraWebGrid1.Columns[index - 1].ValueList;
vlist2.ValueListItems.Add("0", "否");
vlist2.ValueListItems.Add("1", "是");