-
Changing Control's Appearance [Janus GridEX WinForms Control v3.5 for .NET]
There are several properties used to define the appearance of the GridEX control.
We are using only a few of these properties to give you a hint of the possibilities the control has when it comes to its appearance.
The properties used in this tutorial are:
In GridEX Control:
ThemedAreas: With this property, you can define whether to use Windows XP Visual Styles to render some areas of the GridEX control like scrollbars or headers.
VisualStyle: With this property, you can define whether to use standard grid style or Office 2003 style to draw the control. Also, VisualStyleAreas property allows you to determine which visual style to use in each of the different areas of the control.
RowHeaders: To determine whether the control will display a row header at the beginning of the row.
GroupByBoxVisible: Hides or shows the Group By Box area in the control.
AlternatingColors: If this property is set to True, GridEX control will render odd rows using RowFormatStyle settings and even rows using AlternatingRowFormatStyle settings. The colors used in these format styles can be changed directly in the GridEXFormatStyle class.
RecordNavigator: Hides or shows the record navigator in the control.
BorderStyle: Determines which style to use when drawing the border of the control.
GridLines: Lets you specify whether the control will draw vertical and or horizontal lines to separate the cells.
GridLineStyle: Determines if the grid lines in the control will be drawn as a solid or dotted line.
Header Appearance: Unlike the previous properties that belong to the GridEX control directly. This property is set in the GridEXFormatStyle instance that is associated to the HeaderFormatStyle property. HeaderFormatStyle determines the appearance of column and row headers.
Grid.HeaderFormatStyle.Appearance = Appearance.Flat
ScrollBar and DropDowns appearance: The appearance of the scrollbars, buttons, dropdown buttons and record navigator is defined in the ControlStyle property. With the ControlStyle instance associated to the control you can specify the 3D appearance of buttons and also their colors.
Source Of Information : Janus v3.5 Help Files for VS 2008
Subscribe to:
Post Comments (Atom)
0 comments: