Xceed Grid for WinForms v4.3 Documentation
UIStyle Property (GridControl)


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > GridControl Class : UIStyle Property
Gets or sets the appearance of the grid.
Syntax
'Declaration
 
<DescriptionAttribute("Indicates the appearance of the grid.")>
<CategoryAttribute("Appearance")>
<ApplyToDesignerAttribute(True)>
Public Shadows Property UIStyle As UIStyle
'Usage
 
Dim instance As GridControl
Dim value As UIStyle
 
instance.UIStyle = value
 
value = instance.UIStyle
[Description("Indicates the appearance of the grid.")]
[Category("Appearance")]
[ApplyToDesigner(true)]
public new UIStyle UIStyle {get; set;}

Property Value

A Xceed.UI.UIStyle value representing the appearance of the grid.
Remarks

The appearance of the grid control can also be determined by the value of the UIStyle property. By default, when the grid is dropped on the form, it will take on the appearance of the system's theme. To change the appearance of the control, the UIStyle property can be set to Xceed.UI.UIStyle.WindowsXP, Xceed.UI.UIStyle.System (default), Xceed.UI.UIStyle.WindowsClassic, or Xceed.UI.UIStyle.ResourceAssembly.

When the UIStyle property is set to Xceed.UI.UIStyle.System (default), the grid will follow the theme currently being used. If UIStyle is set to Xceed.UI.UIStyle.WindowsXP on non-Windows XP machines, the blue XP theme style will be used. On Windows XP machines, if a classic Windows theme is used, the blue XP theme style will be applied; otherwise, the current XP theme will be used. To force either the blue, olive green, or silver Windows XP theme regardless of the OS, the UIStyle property must be set to Xceed.UI.UIStyle.ResourceAssembly.

When the UIStyle property is set to Xceed.UI.UIStyle.ResourceAssembly, the Xceed.UI.ThemedContainerControl.ResourceAssembly property of the grid must be set to the assembly resource from which the UI style will be loaded.

In the case where the WindowsXP theme is applied to the grid, the values of certain properties, such as GridElement.BackColor, will not be applied to themed elements such as the ColumnManagerRow and RowSelectorPane.

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

GridControl Class
GridControl Members