private void Form1_Load(object sender, EventArgs e)
{
Template template1 = new Template();
ColumnHeaderSection columnHeader1 = CreateColumnHeader();
template1.ColumnHeaders.Add(columnHeader1);
template1.Row.Cells.AddRange(CreateCellsInRow());
template1.Row.Height = 21;
ColumnFooterSection columnFooter1 = CreateColumnFooter();
template1.ColumnFooters.Add(columnFooter1);
template1.Width = 196;
gcMultiRow1.Template = template1;
gcMultiRow1.RowCount = 10;
gcMultiRow1.ViewMode = ViewMode.Row;
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim template1 As New Template()
Dim columnHeader1 As ColumnHeaderSection = CreateColumnHeader()
template1.ColumnHeaders.Add(columnHeader1)
template1.Row.Cells.AddRange(CreateCellsInRow())
template1.Row.Height = 21
Dim columnFooter1 As ColumnFooterSection = CreateColumnFooter()
template1.ColumnFooters.Add(columnFooter1)
template1.Width = 196
gcMultiRow1.Template = template1
gcMultiRow1.RowCount = 10
gcMultiRow1.ViewMode = ViewMode.Row
End Sub