Imports GrapeCity.Win.CalendarGrid
Dim template As New CalendarTemplate()
template.RowHeaderColumnCount = 1
template.ColumnCount = 1
template.ColumnHeaderRowCount = 1
template.RowCount = 3
template.RowHeader.Columns(0).Width = 30
' CheckBox型セルを作成します。
Dim checkBoxCellType As New CalendarCheckBoxCellType()
checkBoxCellType.Text = "確認済"
' Button型セルを作成します。
Dim buttonCellType As New CalendarButtonCellType()
' テンプレートにセル型を配置して、値を設定します。
template.Content.Rows(0).Cells(0).CellType = checkBoxCellType.Clone()
template.Content.Rows(0).Cells(0).Value = True
template.Content.Rows(2).Cells(0).CellType = buttonCellType.Clone()
template.Content.Rows(2).Cells(0).Value = "確定"
GcCalendarGrid1.Template = template
using GrapeCity.Win.CalendarGrid;
CalendarTemplate template = new CalendarTemplate();
template.RowHeaderColumnCount = 1;
template.ColumnCount = 1;
template.ColumnHeaderRowCount = 1;
template.RowCount = 3;
template.RowHeader.Columns[0].Width = 30;
// CheckBox型セルを作成します。
CalendarCheckBoxCellType checkBoxCellType = new CalendarCheckBoxCellType();
checkBoxCellType.Text = "確認済";
// Button型セルを作成します。
CalendarButtonCellType buttonCellType = new CalendarButtonCellType();
// テンプレートにセル型を配置して、値を設定します。
template.Content.Rows[0].Cells[0].CellType = checkBoxCellType.Clone();
template.Content.Rows[0].Cells[0].Value = true;
template.Content.Rows[2].Cells[0].CellType = buttonCellType.Clone();
template.Content.Rows[2].Cells[0].Value = "確定";
gcCalendarGrid1.Template = template;