FlexGrid for WinForms
Styles Property

Gets the collection of cell styles defined in the grid.
<C1DescriptionAttribute("Style collection.")>
Public Property Styles As CellStyleCollection
Dim instance As C1FlexGridBase
Dim value As CellStyleCollection
instance.Styles = value
value = instance.Styles
[C1Description("Style collection.")]
public CellStyleCollection Styles {get; set;}
[C1Description("Style collection.")]
property CellStyleCollection^ Styles {
   CellStyleCollection^ get();
   void set (    CellStyleCollection^ value);

The Styles property enables you to obtain a reference to the list of styles that are currently defined in the grid. With this reference, you can add, remove, and count the styles. For more information on the tasks that can be performed with this collection, see the CellStyleCollection class reference topics. For information on cell formatting, see the CellStyle reference topics.

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

Upgrade Note: The VSFlexGrid ActiveX control had many properties that affected the way the grid was displayed (e.g. BackColor, BackColorAlternate, BackColorBkg, BackColorFixed, BackColorFrozen, BackColorSel, and so on). The C1FlexGrid control replaces all these properties with a collection of CellStyle objects. This makes the object model simpler, more consistent, and more powerful. You can change the built-in styles or define your own, and assign them to rows, columns, or arbitrary cell ranges.


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


C1FlexGridBase Class
C1FlexGridBase Members



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

Send Feedback