# Smart Controls

Formatting Smart Controls |

By default, the format of Formatted and Report View List Boxes, as well as Grids, is derived from the Columns and Column Options specified in the query (or query list) definition. Smart controls that do not have a format associated with them (i.e. Drop Boxes, Standard and List View List Boxes) display only the first field as defined in the query definition. The Chart derives its format and titles from the Query+ AutoChart definition.

You can refine the format by changing the Column Options in the query list definition, or you can go back to the control's properties definition and apply options that are not available in the query definition.

## Formatting Smart List Boxes

The format used to display a Formatted or Report View List Box can be derived in two ways:

- If no format is defined in the List Box definition, then row height, column widths, titles and alignment are derived from the associated Query object definition. This also includes special Query column display options such as bold or colored text, color highlighting, images and percent bars.
- If a format is defined in the List Box definition, then this definition will override that of the Query object.

Tree View List Boxes can have bitmaps associated with them using the Tree View Format Definition window.

## Formatting a Smart Grid

The format used to display a Grid can be derived in two ways:

- If no format is defined in the Grid definition, then columns, column widths and titles are derived from the associated Query object definition. The initial gray column (i.e. column -1) is suppressed. The Grid does not directly support special Query column display options such as bold or colored text, color highlighting, images and percent bars, although colors and font can be set up in Presets Definition.
- If the Grid definition includes formatting, then that format takes precedence. If you want to set up different cell types or take advantage of features such as Named Columns, then you must set up your own format.

Grid presets and cell logic can be set up to be used by your Smart Grid control. If the Grid does not have a defined format, then presets involving column titles and widths will be overridden by the titles and widths from the Query object definition.

## Formatting a Chart

By default, the Chart format (i.e. 2D/3D Area, Bar, Column, etc.) and titles are derived from the Query+ AutoChart definition.

To override this, select the Ignore Query chart format check box in Smart Chart Definition. The format and titles of the Chart control definition will then be used.