@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new LinkButtonColumn { HeaderText="操作", Text="申请", EnableFieldName="IsCanApply", Align=AlignStyle.Center, Width=50, Handle="RetakePlan_Apply" },
new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=80 },
new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, OverflowLength=14, Width=120 },
new BoundFieldColumn { FieldName="ClassName", HeaderText="重修班级", Align=AlignStyle.Center, OverflowLength=14, Width=120 },
new BoundFieldColumn { FieldName="TeacherName", HeaderText="任课教师", Align=AlignStyle.Center, OverflowLength=10, Width=80 },
new BoundFieldColumn { FieldName="CourseTimeDesc", HeaderText="课时类别", Align=AlignStyle.Center, Width=60 },
new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=50, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
new BoundFieldColumn { FieldName="ScheduledTimes", HeaderText="总学时", Align=AlignStyle.Center, Width=60 },
new BoundFieldColumn { FieldName="ClassroomName", HeaderText="课室", Align=AlignStyle.Center, Width=80 },
new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="状态", Align=AlignStyle.Center, Width=60 }
},
IsCheckOnSelect = false,
DataSourceUrl = Url.Content("~/RetakePlan/StudentList"),
ID = "dgRetakePlanList",
IsPagination = false,
IsShowRowNumbers = true,
IsSingleSelect = false
})