private void Form1_Load(object sender, EventArgs e)
{
GcMaskCell gcMaskCell1 = new GcMaskCell();
SetGcMaskCellFields(gcMaskCell1);
gcMaskCell1.ShortcutKeys.Add(Keys.F6, "ShortcutClear");
Template template1 = Template.CreateGridTemplate(new Cell[] { gcMaskCell1, gcMaskCell1.Clone() as Cell }, 200,
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 gcMaskCell1 As New GcMaskCell()
SetGcMaskCellFields(gcMaskCell1)
gcMaskCell1.ShortcutKeys.Add(Keys.F6, "ShortcutClear")
Dim template1 As Template = Template.CreateGridTemplate(New Cell() {gcMaskCell1, TryCast(gcMaskCell1.Clone(), Cell)}, 200, AutoGenerateGridTemplateStyles.ColumnHeader Or AutoGenerateGridTemplateStyles.RowHeaderAutoNumber)
gcMultiRow1.Template = template1
gcMultiRow1.RowCount = 3
End Sub