ShowGrid Property

Applies To

Form, Query, Table.

Description

You can use the ShowGrid property to specify whether gridlines are visible when the table, query, or form is displayed in Datasheet view.

Note The ShowGrid property is included in this version of Microsoft Access only for compatibility with previous versions. It is recommended that you use the DatasheetGridLinesBehavior property instead.

The ShowGrid property applies to all fields in Datasheet view.

Setting

The ShowGrid property uses the following settings.

Setting

Description

Visual Basic

True

The display grid lines are displayed in Datasheet view.

True (-1)

False

The grid lines aren’t displayed in Datasheet view.

False (0)


In previous versions of Microsoft Access, you could set the ShowGrid property in Datasheet view by clicking Gridlines on the Format menu.

See Also

DatasheetCellsEffect Property, DatasheetGridLinesBehavior Property.