private void Form1_Load(object sender, EventArgs e)
{
GcCharMaskCell gcCharMaskCell1 = new GcCharMaskCell();
gcCharMaskCell1.CharBoxes.Clear();
//Allow the GcCharMaskCell to accept upper case alphabet(A-Z).
gcCharMaskCell1.Format = "A";
//Add some CharBoxes to GcCharMaskCell.
gcCharMaskCell1.CharBoxes.AddRange(new InputBox[] { new InputBox(), new InputBox(), new InputBox() });
//In edit mode, hit the F6 to clear the content.
gcCharMaskCell1.ShortcutKeys.Add(Keys.F6, "ShortcutClear");
Template template1 = Template.CreateGridTemplate(new Cell[] { gcCharMaskCell1, gcCharMaskCell1.Clone() as Cell }, 160,
AutoGenerateGridTemplateStyles.ColumnHeader | AutoGenerateGridTemplateStyles.RowHeaderAutoNumber);
gcMultiRow1.Template = template1;
gcMultiRow1.RowCount = 3;
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim gcCharMaskCell1 As New GcCharMaskCell()
gcCharMaskCell1.CharBoxes.Clear()
'Allow the GcCharMaskCell to accept upper case alphabet(A-Z).
gcCharMaskCell1.Format = "A"
'Add some CharBoxes to GcCharMaskCell.
gcCharMaskCell1.CharBoxes.AddRange(New InputBox() {New InputBox(), New InputBox(), New InputBox()})
'In edit mode, hit the F6 to clear the content.
gcCharMaskCell1.ShortcutKeys.Add(Keys.F6, "ShortcutClear")
Dim template1 As Template = Template.CreateGridTemplate(New Cell() {gcCharMaskCell1, TryCast(gcCharMaskCell1.Clone(), Cell)}, 160, AutoGenerateGridTemplateStyles.ColumnHeader Or AutoGenerateGridTemplateStyles.RowHeaderAutoNumber)
gcMultiRow1.Template = template1
gcMultiRow1.RowCount = 3
End Sub