GrapeCity MultiRow Windows Forms Documentation
ColumnFooterSection Constructor
Example 


Initializes a new instance of the ColumnFooterSection class.
Syntax
Public Function New()
Dim instance As New ColumnFooterSection()
public ColumnFooterSection()
Example
The following code example shows how to create a ColumnFooterSection with some HeaderCells in it. This code example is part of a larger example provided for the HeaderCell class.
private ColumnFooterSection CreateColumnFooter()
        {
            ColumnFooterSection columnFooter1 = new ColumnFooterSection();
            columnFooter1.Height = 20;

            HeaderCell headerCell1 = new HeaderCell();
            headerCell1.Size = new Size(36, 20);
            //There are 4 gutters around the HeaderCell.
            headerCell1.GutterStyles = GutterStyles.All;
            //The hover effect is not 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 draws one gutter.
            headerCell2.GutterStyles = GutterStyles.Right;
            //The cell's top draws the 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 are 4 gutters around the HeaderCell.
        headerCell1.GutterStyles = GutterStyles.All
        'The hover effect is not 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 draws one gutter.
        headerCell2.GutterStyles = GutterStyles.Right
        'The cell's top draws the 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
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ColumnFooterSection Class
ColumnFooterSection Members

 

 


Copyright © GrapeCity, inc. All rights reserved.