private void Form1_Load(object sender, EventArgs e)
{
MaskedTextBoxCell jpDateMaskedTextBoxCell = new MaskedTextBoxCell();
jpDateMaskedTextBoxCell.Mask = "AA00年90月90日 90時90分";
jpDateMaskedTextBoxCell.Size = new Size(170, 21);
MaskedTextBoxCell postalcodeMaskedTextBoxCell = new MaskedTextBoxCell();
postalcodeMaskedTextBoxCell.Mask = "000-0000";
postalcodeMaskedTextBoxCell.Size = new Size(60, 21);
Cell[] cells = new Cell[] { jpDateMaskedTextBoxCell, postalcodeMaskedTextBoxCell };
Template template1 = Template.CreateGridTemplate(cells);
template1.ColumnHeaders[0][0].Value = "日付と時間(和暦、日本語)";
template1.ColumnHeaders[0][1].Value = "郵便番号";
gcMultiRow1.Template = template1;
gcMultiRow1.RowCount = 3;
gcMultiRow1[0, 0].Value = "平成11年06月03日 09時30分";
gcMultiRow1[0, 1].Value = "182-0021";
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim jpDateMaskedTextBoxCell As New MaskedTextBoxCell()
jpDateMaskedTextBoxCell.Mask = "AA00年90月90日 90時90分"
jpDateMaskedTextBoxCell.Size = New Size(170, 21)
Dim postalcodeMaskedTextBoxCell As New MaskedTextBoxCell()
postalcodeMaskedTextBoxCell.Mask = "000-0000"
postalcodeMaskedTextBoxCell.Size = New Size(60, 21)
Dim cells As Cell() = New Cell() {jpDateMaskedTextBoxCell, postalcodeMaskedTextBoxCell}
Dim template1 As Template = Template.CreateGridTemplate(cells)
template1.ColumnHeaders(0)(0).Value = "日付と時間(和暦、日本語)"
template1.ColumnHeaders(0)(1).Value = "郵便番号"
gcMultiRow1.Template = template1
gcMultiRow1.RowCount = 3
gcMultiRow1(0, 0).Value = "平成11年06月03日 09時30分"
gcMultiRow1(0, 1).Value = "182-0021"
End Sub