[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'DBGrids' (#lcl)

# Reference for unit 'DBGrids'

Implements a data-aware grid to display and operate on information in a database.

`uses`
`Classes,`
`SysUtils,`
`Math,`
`FileUtil,`
`DB,`
`LazUTF8,`
`LazLoggerBase,`
`LCLStrConsts,` |  | Contains resource strings used in the LCL.
`LCLIntf,` |  | Contains WinAPI-like functions for Delphi compatibility.
`LCLType,` |  | Provides compatibility with the Delphi Windows unit.
`LMessages,` |  | Contains Lazarus message codes and their mapping to message codes for other platforms/widgetsets.
`LResources,` |  | Maintains a global list of Lazarus resources, and provides methods and types used to stream components.
`Controls,` |  | Contains types, constants, classes, and routines used to implement visual controls.
`StdCtrls,` |  | Standard controls used in the Lazarus Component Library (LCL).
`Graphics,` |  |
`Grids,` |  | Classes for displaying tabular data as a series of rows and columns.
`Dialogs,` |  | Contains common dialogs used in Lazarus LCL applications.
`Themes,` |  | Implements Theme Services for supported platforms / widgetsets.
`Variants,`
`Clipbrd,` |  | Definitions for the Clipboard to hold Cut or Copied data for Pasting.
`ImgList,` |  | Contains classes and types used in TCustomImageList, the base class for TImageList.
`Laz2_XMLCfg;`

## Overview

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.