Version

Changing the Style of Column Headers/Row Selectors

The WinGrid™ control allows you to easily specify the visual appearance of column headers and row selectors. By default, the row selectors will take on the style of the column headers. However, if necessary, you can change the RowSelectorStyle property in order to assign the row selectors a different style than that of the column headers.

To access the HeaderStyle and RowSelectorStyle properties:

  1. Right-click on the WinGrid and select "UltraWinGrid Designer" from the context-sensitive menu.

  2. In the designer on the right-hand side, select the option "Control Settings".

  3. Scroll down and expand the DisplayLayout property.

  4. Scroll down to the Override property and expand it.

  5. In the Override property, scroll down to either the HeaderStyle or RowSelectorStyle properties. Both of these properties have the same four following settings:

    • Default - The default setting.

      • HeaderStyle - takes on the 'Standard' style

      • RowSelectorStyle - takes on the 'XPThemed' style

    • Standard - A flat 'Office 2000' look, with hot-tracking.

    • WindowsXPCommand - The look and feel of a command button in Windows XP, with orange hot-tracking around all four sides of the element.

    • XPThemed - The themed look drawn by the Windows XP operating system.

The WinGrid in the example image below has its HeaderStyle set to 'WindowsXPCommand' and RowSelectorStyle set to 'Standard'. If you were to run the application with these settings, you would get similar results in which mousing over the column headers produces orange hot-tracking, and the row selectors do not hot-track.

change the style of column headers and row selectors in ultragrid