FlexGrid for WinForms
StyleNew Property (RowCol)

Gets or sets a custom CellStyle associated with this row or column, creating a new style if necessary.
Public Overridable ReadOnly Property StyleNew As CellStyle
Dim instance As RowCol
Dim value As CellStyle
value = instance.StyleNew
public virtual CellStyle StyleNew {get;}
virtual property CellStyle^ StyleNew {
   CellStyle^ get();
This property never returns null. If this element does not have a custom style, a new one will be created automatically and returned.
The code below sets a column's background color to red.
// get the style associated with column 1 (create a new one if necessary)
CellStyle cs = _flex.Cols[1].StyleNew.BackColor;
// set the new style's back color to red
cs.BackColor = Color.Red;

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


RowCol Class
RowCol Members



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

Send Feedback