@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.08},
new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.04 },
new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
new BoundFieldColumn { FieldName="SOCDetailName", HeaderText="成果名称", Align=AlignStyle.Center, Width=0.05 },
new BoundFieldColumn { FieldName="SOCDetailCredit", HeaderText="成果学分", Align=AlignStyle.Center, Width=0.04 },
new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=0.04 },
new BoundFieldColumn { FieldName="Score", HeaderText="成果得分", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
new BoundFieldColumn { FieldName="CreateTime", HeaderText="录入时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.OnlyYearMonthDay },
new BoundFieldColumn { FieldName="CreateUserName", HeaderText="录入人", Align=AlignStyle.Center, Width=0.03 }
},
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/SOCDetailScore/StudentDetailScoreList"),
ID = "dgStudentDetailScoreList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false,
IsAutoLoad = false
})