FlexGrid for WinForms
Cols Property



Gets the collection of Column objects in the grid.
Syntax
'Declaration
 
<C1DescriptionAttribute("Gets the collection of Columns in the grid.")>
<C1CategoryAttribute("Layout")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
Public Property Cols As ColumnCollection
'Usage
 
Dim instance As C1FlexGridBase
Dim value As ColumnCollection
 
instance.Cols = value
 
value = instance.Cols
[C1Description("Gets the collection of Columns in the grid.")]
[C1Category("Layout")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public ColumnCollection Cols {get; set;}
[C1Description("Gets the collection of Columns in the grid.")]
[C1Category("Layout")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public:
property ColumnCollection^ Cols {
   ColumnCollection^ get();
   void set (    ColumnCollection^ value);
}
Remarks

The Cols property returns a reference to the list of columns that make up the grid. With this reference, you can add, remove, move, and count the columns. For more information on the tasks that can be performed with this collection, see the ColumnCollection object.

This property is read-only. The grid creates and manages the column collection for you.

Upgrade Note: In the VSFlexGrid ActiveX control, the Cols and FixedCols properties corresponded to the number of columns and fixed columns on the grid. In C1FlexGrid, use Cols.Count and Cols.Fixed instead.

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

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback