GrapeCity MultiRow Windows Forms Documentation
ColumnHeaderSection Class
Members  Example 


Represents a section in the top panel of a GcMultiRow control.
Object Model
ColumnHeaderSection ClassGradientEffect StructureBorderBase ClassCellCollection ClassCell ClassCellStyle ClassCellStyle ClassGcMultiRow ClassCellStyle ClassCell ClassGradientEffect StructureGradientEffect StructureMultiRowTouchToolBar Class
Syntax
<FeatureAttribute(Name="Row_Header_Footer", Version="v5.0")>
<ToolboxBitmapAttribute()>
<DefaultMemberAttribute("Item")>
Public Class ColumnHeaderSection 
   Inherits Section
Dim instance As ColumnHeaderSection
[Feature(Name="Row_Header_Footer", Version="v5.0")]
[ToolboxBitmap()]
[DefaultMember("Item")]
public class ColumnHeaderSection : Section 
Remarks
GcMultiRow has three parts in the layout view: top, row, and bottom. The section in the top panel is the ColumnHeaderSection. The section in the bottom panel is the ColumnFooterSection. The section in the row panel is the Row. Each part can have zero or more sections. The number of ColumnHeaderSections and ColumnFooterSections depend on the GcMultiRow.Template property in GcMultiRow. The ColumnHeaderSections and the ColumnFooterSections in the same GcMultiRow control can have different layouts. The Row count in the GcMultiRow control depends on the GcMultiRow.RowCount property. One template only has one Row and the rows in GcMultiRow are repeats of the Template.Row.
Example
The following code example shows how to create a ColumnHeaderSection with header cells in it. This code example is part of a larger example provided for the HeaderCell class.
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
Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         GrapeCity.Win.MultiRow.Section
            GrapeCity.Win.MultiRow.ColumnHeaderSection

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

ColumnHeaderSection Members
GrapeCity.Win.MultiRow Namespace
Row Class
ColumnFooterSection Class
Section Class
ColumnHeaderSectionCollection Class

 

 


Copyright © GrapeCity, inc. All rights reserved.