Show: Delphi C++
Display Preferences

Setting Grid Options

From RAD Studio
Jump to: navigation, search

Go Up to Viewing and Editing Data with TDBGrid


You can use the grid Options property at design time to control basic grid behavior and appearance at run time. When a grid component is first placed on a form at design time, the Options property in the Object Inspector is displayed with a + (plus) sign to indicate that the Options property can be expanded to display a series of Boolean properties that you can set individually. To view and set these properties, click the + sign. The list of options is expanded in the Object Inspector below the Options property. The + sign changes to a - (minus) sign, which collapses the list back when you click it.

The Options properties that can be set are listed here. For more full descriptions of these options (including how they affect the grid at run time), see Vcl.DBGrids.TDBGridOption:

TDBGridOption Properties:

  • dgAlwaysShowEditor
  • dgAlwaysShowSelection
  • dgCancelOnExit
  • dgColLines
  • dgColumnResize
  • dgConfirmDelete
  • dgEditing
  • dgIndicator
  • dgMultiSelect
  • dgRowLines
  • dgRowSelect
  • dgTabs
  • dgTitleClick
  • dgTitleHotTrack
  • dgTitles


See Also

Personal tools
RAD Studio 10.2 Tokyo
In other languages
Previous Versions
Assistance