[]
public enum CellStyleEnum
Cell styles can be retrieved from the Styles collection using the indexer or the style name. Built-in styles can also be obtained directly through read-only properties.
The code below shows three ways to obtain a reference to a grid's default style:
// s1, s2, and s3 are all references to the grid's Normal style:
CellStyle s1 = _flex.Styles[CellStyleEnum.Normal];
CellStyle s2 = _flex.Styles["Normal"];
CellStyle s3 = _flex.Styles.Normal;
| Name | Description |
|---|---|
| Alternate | Style used to render scrollable cells in even-numbered rows. |
| Editor | Style used to render cells being edited. |
| EmptyArea | Style used to render the area of the grid where there are no cells. |
| FilterEditor | Style used to paint the filter editors. |
| FirstCustomStyle | Constant that indicates the first custom style. |
| Fixed | Style used to render fixed cells. |
| Focus | Style used to render the cell that has the focus. |
| Footer | Style used to paint the footers. |
| Frozen | Style used to render cells that are frozen (editable and selectable, but not scrollable). |
| FrozenAlternate | Style used to render cells that are frozen (editable and selectable, but not scrollable) in even-numbered rows. |
| GrandTotal | Style automatically assigned to grand total nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method. |
| Highlight | Style used to render cells that are selected and highlighted. |
| Hover | Style used to render hovered cells. |
| NewRow | Style used to render the last row on the grid when the AllowAddNew property is set to true. |
| Normal | Style used to render scrollable normal cells. |
| Search | Style used to render cells that are being selected as the user types (see the AutoSearch property). |
| SelectedColumnHeader | Style used to render selected column headers. |
| SelectedRowHeader | Style used to render selected row headers. |
| Subtotal0 | Style automatically assigned to level-0 nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method. |
| Subtotal1 | Style automatically assigned to level-1 nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method. |
| Subtotal2 | Style automatically assigned to level-2 nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method. |
| Subtotal3 | Style automatically assigned to level-3 nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method. |
| Subtotal4 | Style automatically assigned to level-4 nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method. |
| Subtotal5 | Style automatically assigned to level-5 nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method. |