DBGrids unit
Implements a data-aware grid to display and operate on information in a database.
dbgrids.pas contains classes and types needed to implement a
database-aware grid control. The following components are added to the
Data Controls tab in the Lazarus IDE Component Palette:
- TDBGrid
The unit also includes the TComponentDatalink component, which is
used as the data link for TCustomDBGrid. It was taken from an article by
Joanna Carter:
"The Ultimate Datalink?"
, published in Delphi
Magazine Issue #30 February 1998.
Classes and records
EInvalidGridOperation | class | Exception raised for an invalid grid operation. |
TBookmarkedRecordEnumerator | class | Defines a bookmarked record enumeration class. |
TBookmarkList | class | Implements a list of Bookmarks in a database grid. |
TColumn | class | Implements a display column for the TDBGrid control. |
TColumnTitle | class | TColumnTitle is a TGridColumnTitle descendant. |
TComponentDataLink | class | Maintains an association between a component and a dataset. |
TCustomDBGrid | class | TCustomDBGrid is the base class for TDBGrid. |
TDBGrid | class | Data-aware grid control used to display and edit rows and columns in a dataset. |
TDBGridColumns | class | Implements a collection for columns in a database-aware grid. |
Procedures and functions
Register | procedure | Registers components in the unit for use in the Lazarus IDE. |
Types
TBookmarkedRecordEnumeratorOptions | set | Enumeration with option values for the bookmarked record enumerator. |
TColumnOrder | enumeration | Enumerated type defining alternate ordering for columns. |
TDataSetScrolledEvent | procedure type | Specifies an event handler signalled after scrolling a dataset. |
TDbGridCellHintEvent | procedure type | Specifies an event handler signalled to get the hint text for a cell in a grid control. |
TDbGridCheckBoxBitmapEvent | procedure type | Specifies an event handler signalled to get the user-specified Bitmap for a check box column in a grid control. |
TDbGridCheckboxStateEvent | procedure type | Specifies an event handler signalled to get the user-specified state for a check box column on the grid control. |
TDBGridClickEvent | procedure type | Specifies an event handler signalled when a grid column in is clicked. |
TDbGridExtraOption | enumeration | Enumerated type that specifies extra options available in a database grid. |
TDbGridExtraOptions | set | TDbGridExtraOptions is a set of values from the TDbGridExtraOption enumeration. |
TDBGridOption | enumeration | Enumerated type containing options available for use in a database grid control. |
TDbGridOptions | set | Stores values from the TDbGridOption enumeration. |
TDbGridSelEditorEvent | procedure type | Specifies an event handler used to select a cell editor in a database grid. |
TDbGridStatus | set | Set type used to store TDbGridStatusItem enumeration values. |
TDbGridStatusItem | enumeration | Enumerated type with values for status messages used in a database grid. |
TDrawColumnCellEvent | procedure type | Specifies an event handler for drawing a cell in a grid control. |
TFocusControlEvent | procedure type | Event handler signalled to coordinate Field selection and control focus. |
TGetDbEditMaskEvent | procedure type | Specifies an event handler used to get the Edit Mask for a cell in a grid. |
TMovedEvent | procedure type | Specifies an event handler signalled when the display order of rows or columns is changed. |
TPrepareDbGridCanvasEvent | procedure type | Specifies an event handler which prepares the canvas for drawing a database grid. |
Constants
DEFINDICATORCOLWIDTH | constant | Default width for the row indicator column in a grid control. |
Uses
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
