.topic ctrl.dbgrid
.title DBGrid
.toc 1 DBGrid
.index DBGrid
.index Data-Bound Grid

.h1 DBGrid

VB Equivalent: DBGrid -- DVX Widget: dbgrid

A data-bound grid that displays records from a Data control in a tabular format. Columns are auto-generated from the query results. Bind it using the DataSource property.

.h2 Type-Specific Properties

.table
  Property     Type      Description
  ----------   -------   -------------------------------------------
  DataSource   String    Name of the Data control that supplies records.
  GridLines    Boolean   Show or hide grid lines between cells.
.endtable

.h2 Type-Specific Methods

.table
  Method    Parameters   Description
  -------   ----------   -------------------------------------------
  Refresh   (none)       Reload and redraw the grid from the Data control.
.endtable

.h2 Type-Specific Events

.table
  Event      Parameters   Description
  --------   ----------   -------------------------------------------
  Click      (none)       Fires when a cell is clicked.
  DblClick   (none)       Fires when a cell is double-clicked. This is the default event.
.endtable

.link ctrl.common.props Common Properties, Events, and Methods
.link ctrl.data Data
.link ctrl.databinding Data Binding
