@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="DictionaryItemID" },
new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 },
new BoundFieldColumn { FieldName="Name", HeaderText="名称", Align=AlignStyle.Center, Width=0.08 },
new BoundFieldColumn { FieldName="Code", HeaderText="代码", Align=AlignStyle.Center, Width=0.1 }
//new BoundFieldColumn { FieldName="Value", HeaderText="值", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
//new BoundFieldColumn { FieldName="DictionaryName", HeaderText="类型名称", Align=AlignStyle.Center, Width=0.06 }
},
IsPostBack = true,
//IsAutoLoad = false,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/OpenObject/SchoolyearNumNoAddList"),
ID = "dgSchoolyearNumDicNoAddList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
})
|