private ColumnFooterSection CreateColumnFooter()
{
ColumnFooterSection columnFooter1 = new ColumnFooterSection();
columnFooter1.Height = 20;
HeaderCell headerCell1 = new HeaderCell();
headerCell1.Size = new Size(36, 20);
//There will exist 4 gutters around the HeaderCell.
headerCell1.GutterStyles = GutterStyles.All;
//The hover effect will not be drawn.
headerCell1.HoverDirection = HoverDirection.None;
headerCell1.SelectionMode = MultiRowSelectionMode.AllRows;
HeaderCell headerCell2 = new HeaderCell();
headerCell2.Size = new Size(80, 21);
headerCell2.Location = new Point(headerCell1.Left + headerCell1.Width, 0);
//The cell's right will draw one gutter.
headerCell2.GutterStyles = GutterStyles.Right;
//The cell's top will draw hover effect.
headerCell2.HoverDirection = HoverDirection.Top;
headerCell2.SelectionMode = MultiRowSelectionMode.IntersectedCells;
HeaderCell headerCell3 = headerCell2.Clone() as HeaderCell;
headerCell3.Location = new Point(headerCell2.Left + headerCell2.Width, 0);
columnFooter1.Cells.AddRange(new Cell[] { headerCell1, headerCell2, headerCell3 });
return columnFooter1;
}
Private Function CreateColumnFooter() As ColumnFooterSection
Dim columnFooter1 As New ColumnFooterSection()
columnFooter1.Height = 20
Dim headerCell1 As New HeaderCell()
headerCell1.Size = New Size(36, 20)
'There will exist 4 gutters around the HeaderCell.
headerCell1.GutterStyles = GutterStyles.All
'The hover effect will not be drawn.
headerCell1.HoverDirection = HoverDirection.None
headerCell1.SelectionMode = MultiRowSelectionMode.AllRows
Dim headerCell2 As New HeaderCell()
headerCell2.Size = New Size(80, 21)
headerCell2.Location = New Point(headerCell1.Left + headerCell1.Width, 0)
'The cell's right will draw one gutter.
headerCell2.GutterStyles = GutterStyles.Right
'The cell's top will draw hover effect.
headerCell2.HoverDirection = HoverDirection.Top
headerCell2.SelectionMode = MultiRowSelectionMode.IntersectedCells
Dim headerCell3 As HeaderCell = TryCast(headerCell2.Clone(), HeaderCell)
headerCell3.Location = New Point(headerCell2.Left + headerCell2.Width, 0)
columnFooter1.Cells.AddRange(New Cell() {headerCell1, headerCell2, headerCell3})
Return columnFooter1
End Function