[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Data-aware grid control for display and editing rows and columns in a dataset.
Source position: dbgrids.pas line 571
type TDBGrid = class(TCustomDBGrid) |
||
public |
||
property BorderColor: TColor; |
|
The color used for the border on the control. |
|
The drawing surface for the control. |
|
property DefaultTextStyle: TTextStyle; |
|
Default style used to display text; includes alignment, layout, and wrapping. |
property EditorBorderStyle: TBorderStyle; |
|
The border style for the Editor control. |
property EditorMode: Boolean; |
|
True when the Editor is ready to modify the value for the current cell. |
property ExtendedColSizing: Boolean; |
|
Indicates if extended column sizing is enabled in the grid. |
property FastEditing: Boolean; |
|
Indicates if "Fast Editing" is enabled in the grid. |
property FocusColor: TColor; |
|
The color used for a cell when it has focus. |
property FocusRectVisible: Boolean; |
|
Indicates if the focus rectangle is visible for the control. |
property GridLineColor: TColor; |
|
Color used for the grid lines on the control. |
property GridLineStyle: TPenStyle; |
|
Style used to draw the grid lines on the control. |
property InplaceEditor: TWinControl; |
|
Cell editor for the grid control. |
property SelectedColor: TColor; |
|
Color used for selected cells in the grid. |
property SelectedRows: TBookmarkList; |
|
SelectedRows - recorded as a bookmark list. |
property OnRowMoved: TMovedEvent; |
|
Event handler signalled when a grid row is moved in the control. |
published |
||
|
Specifies the placement of the control inside its Parent. |
|
property AlternateColor: TColor; |
|
Color used for the background in alternate rows in the grid. |
|
The set of anchor definitions for this control. |
|
property AutoAdvance: TAutoAdvance; |
|
Sets the auto advance option for the grid control. |
property AutoEdit: Boolean; |
|
Indicates if edit mode is automatically entered when a cell is selected. |
property AutoFillColumns: Boolean; |
|
Automatically resizes columns so they fill all of the visible area in the grid. |
property BiDiMode: TBiDiMode; |
|
Customization (of text controls) in bidirectional reading environments. |
property BorderSpacing: TControlBorderSpacing; |
|
Determines the inner and outer border spacing for this control. |
property BorderStyle: TBorderStyle; |
|
Border style drawn around the grid control. |
property CellHintPriority: TCellHintPriority; |
|
Identifies how text is combined to form the Hint property. |
|
The background color of the control. |
|
property Columns: TDBGridColumns; |
|
Defines the dataset fields and their editing characteristics on the grid control. |
property Constraints: TSizeConstraints; |
|
The minimum and maximum Width and Height for the control. |
property DataSource: TDataSource; |
|
Provides access to the dataset displayed in the grid. |
property DefaultDrawing: Boolean; |
|
Indicates if the default drawing mechanism is used to draw the background for cells. |
property DefaultRowHeight: Integer; |
|
Default height for rows drawn in the grid control. |
property DoubleBuffered: Boolean; |
|
Allows to reduce flicker in the painting of the control. |
property DragCursor: TCursor; |
|
The cursor shape shown while the control is dragged. |
|
Allows the user to drag the control. |
|
property Enabled: Boolean; |
|
Determines if the grid control is enabled for navigation and editing. |
property FixedColor: TColor; |
|
The color used for the fixed cells in the grid. |
property FixedCols: Integer; |
|
The number of fixed columns in the grid. |
property FixedHotColor: TColor; |
|
The color used for selected, hot-lighted, etc. fixed cells in the grid. |
property Flat: Boolean; |
|
Indicates if cells are displayed using a Flat appearance. |
|
The font to be used for text display in this control. |
|
property HeaderHotZones: TGridZoneSet; |
|
'Hot' zones for cell headers that can be selected, clicked, or ignored. |
property HeaderPushZones: TGridZoneSet; |
|
"Hot" zones for cell headers that have been selected or "pushed" in the grid. |
property Options: TDbGridOptions; |
|
Enables or disables optional features or behaviors in the grid control. |
property Options2: TGridOptions2; |
|
Contains additional options enabled for the grid control. |
property OptionsExtra: TDbGridExtraOptions; |
|
Contains the extra options enabled for the database grid control. |
property ParentBiDiMode: Boolean; |
|
Allows to use the BiDiMode settings in the Parent control. Default is true. |
property ParentColor: Boolean; |
|
Uses the Color from the Parent control, when enabled. |
property ParentDoubleBuffered: Boolean; |
|
Value from the DoubleBuffered property in a Parent control. |
property ParentFont: Boolean; |
|
If true, the Font of the control will be the same as the one from the Parent. Default is true. |
property PopupMenu: TPopupMenu; |
|
A context-sensitive menu that pops up when the right mouse button is clicked over this control. |
property ReadOnly: Boolean; |
|
Indicates if modifications are allowed in the grid control. |
property Scrollbars: TScrollStyle; |
|
Scrollbars displayed for the grid control. |
property ShowHint: Boolean; |
|
Controls whether the Hint is displayed for the control. |
property TabAdvance: TAutoAdvance; |
|
Controls the behavior for Tab navigation in the grid control. |
|
Determines the sequence of control navigation when the user presses the Tab key. |
|
property TabStop: Boolean; |
|
Allows the user to navigate to this control, by pressing the Tab key. |
|
The font used for text in a column title. |
|
property TitleImageList: TImageList; |
|
The list with images displayed in column titles. |
property TitleStyle: TTitleStyle; |
|
The drawing style used for the fixed column titles. |
property UseXORFeatures: Boolean; |
|
When True, the dotted focus rectangle is painted using an XOR raster operation. |
property Visible: Boolean; |
|
Visible controls whether the grid control is visible. |
property OnCellClick: TDBGridClickEvent; |
|
Event handler for mouse click in a column for the grid. |
property OnColEnter: TNotifyEvent; |
|
Event handler signalled when the mouse enters a column. |
property OnColExit: TNotifyEvent; |
|
Event handler signalled when the mouse exits a column. |
property OnColumnMoved: TMovedEvent; |
|
Event handler signalled when the order of a column is changed. |
property OnColumnSized: TNotifyEvent; |
|
Event handler signalled when a grid column has been resized. |
property OnContextPopup: TContextPopupEvent; |
|
Invoked when a context-sensitive pop-up menu is requested. |
property OnDrawColumnCell: TDrawColumnCellEvent; |
|
Event handler signalled when a cell needs to be drawn. |
property OnDrawColumnTitle: TDrawColumnCellEvent; |
|
Event handler signalled when a cell title needs to be drawn. |
property OnDblClick: TNotifyEvent; |
|
Event Handler for double mouse clicks. |
property OnDragDrop: TDragDropEvent; |
|
This handler determines the action on an drop onto this control, in a drag-drop operation. |
property OnDragOver: TDragOverEvent; |
|
Event handler for a control being dragged over this control. |
property OnEditButtonClick: TNotifyEvent; |
|
Event handler signalled when the button in an Editor is clicked. |
property OnEditingDone: TNotifyEvent; |
|
Event handler signalled when editing is done. |
property OnEndDrag: TEndDragEvent; |
|
Notification handler for the end of a dragging operation. |
property OnEnter: TNotifyEvent; |
|
Handler for control receiving the focus. |
property OnExit: TNotifyEvent; |
|
Handler for control loosing the focus; This is a good place for checking the finished user input. |
property OnFieldEditMask: TGetDbEditMaskEvent; |
|
Event handler signalled to get the edit mask for a Field. |
property OnGetCellHint: TDbGridCellHintEvent; |
|
Event handler signalled to get the hint text for a cell in the grid control. |
|
Event handler signalled when a key is down while the control has focus. |
|
property OnKeyPress: TKeyPressEvent; |
|
Event handler signalled for the key press event. |
|
Event handler signalled for a key up event. |
|
property OnMouseDown: TMouseEvent; |
|
Event handler for mouse button going down. |
property OnMouseEnter: TNotifyEvent; |
|
Event handler for mouse entering the area of the control. |
property OnMouseLeave: TNotifyEvent; |
|
Event handler for mouse leaving the area of the control. |
property OnMouseMove: TMouseMoveEvent; |
|
Event handler for mouse movement within the control. |
property OnMouseUp: TMouseEvent; |
|
Event handler for mouse button going up. |
property OnMouseWheel: TMouseWheelEvent; |
|
Event handler for mouse wheel turned. |
property OnMouseWheelDown: TMouseWheelUpDownEvent; |
|
Event handler for downward movement of mouse wheel. |
property OnMouseWheelUp: TMouseWheelUpDownEvent; |
|
Event handler for upward movement of the mouse wheel. |
property OnPrepareCanvas: TPrepareDbGridCanvasEvent; |
|
Event handler signalled to prepare the grid canvas for drawing a cell. |
property OnSelectEditor: TDbGridSelEditorEvent; |
|
Event handler signalled when the editor is selected for a Field in the grid. |
property OnStartDrag: TStartDragEvent; |
|
Event handler for the start of a dragging operation. |
property OnTitleClick: TDBGridClickEvent; |
|
Event handler for mouse clicks on a Title cell. |
property OnUserCheckboxBitmap: TDbGridCheckBoxBitmapEvent; |
|
Event handler signalled to get the user-defined bitmap used for a checkbox cell. |
property OnUserCheckboxImage: TUserCheckBoxImageEvent; |
|
Event handler signalled to get the user-defined image used for a checkbox cell. |
property OnUserCheckboxState: TDbGridCheckboxStateEvent; |
|
Event handler signalled to get a user-specified value for a check box editor on the grid control. |
property OnUTF8KeyPress: TUTF8KeyPressEvent; |
|
Handler for a character entered by the user. |
end; |
|
Data-aware grid control for display and editing rows and columns in a dataset. |
|
| | ||
|
TCustomDBGrid is the base class for TDBGrid |
|
| | ||
|
Implements the base class for grid controls. |
|
| | ||
|
The base class for windowed controls which paint themselves. |
|
| | ||
|
The base class for controls which can contain other (child) controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components which have an associated widget. |
|
| | ||
TComponent |
||
? | ||
TObject |
TDBGrid is a data-aware version of TStringGrid used to display and edit a Rows and Columns in a dataset.
TDBGrid inherits many of its properties from TCustomGrid and its immediate ancestor TCustomDBGrid.
|
HowToUseDataAwareControls - Hints for accessing databases. |
|
|
How to use Grids including StringGrids, DrawGrids and DbGrids. |
lazarus-ccr.sourceforge.net |