private void Form1_Load(object sender, EventArgs e)
{
Template template1 = Template.CreateGridTemplate(4);
ColumnHeaderCell columnHeaderCell = template1.ColumnHeaders[0][0] as ColumnHeaderCell;
columnHeaderCell.SelectionMode = MultiRowSelectionMode.None;
columnHeaderCell.SortMode = SortMode.Automatic;
columnHeaderCell.SortCellName = "textBoxCell1";
gcMultiRow1.Template = template1;
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim template1 As Template = Template.CreateGridTemplate(4)
Dim columnHeaderCell As ColumnHeaderCell = TryCast(template1.ColumnHeaders(0)(0), ColumnHeaderCell)
columnHeaderCell.SelectionMode = MultiRowSelectionMode.None
columnHeaderCell.SortMode = SortMode.Automatic
columnHeaderCell.SortCellName = "textBoxCell1"
gcMultiRow1.Template = template1
End Sub