BCGControlBar Library for .NET
VisualStyle Property (GridColumn)




Gets or sets a column Visual Style.
Syntax
'Declaration
 
Public Property VisualStyle As GridCellVisualStyle
'Usage
 
Dim instance As GridColumn
Dim value As GridCellVisualStyle
 
instance.VisualStyle = value
 
value = instance.VisualStyle
public GridCellVisualStyle VisualStyle {get; set;}
public: __property GridCellVisualStyle* get_VisualStyle();
public: __property void set_VisualStyle( 
   GridCellVisualStyle* value
);
public:
property GridCellVisualStyle^ VisualStyle {
   GridCellVisualStyle^ get();
   void set (    GridCellVisualStyle^ value);
}
Remarks
This property determines the Visual Style of cells located in a column. The Visual Style is cumulative and calculated as data item -> column -> row (or row->column in case when for particular cell row and column styles are defined and row's style is more recent, which is important for editable grids).

The Visual Styles are merged. For example, if both GridDataItem and GridColumn have background color defined in their Visual Style, the cell, displaying the data item will take back color  from GridDataItem. But if GridDataItem defines bold font and GridColumn defines italic font, the cell's data will be displayed with bold italic font.
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

GridColumn Class
GridColumn Members

Send Feedback