[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 569
type TDBGrid = class(TCustomDBGrid) end; |
||
public |
||
property BorderColor: TColor; |
|
The colour of the border for this control |
|
The drawing surface for the control, see TCanvas for details. |
|
property DefaultTextStyle: TTextStyle; |
|
Default style for displaying text - includes alignment, layout, single or multi-lines |
property EditorBorderStyle: TBorderStyle; |
|
The border style for the editor used in this grid |
property EditorMode: Boolean; |
|
Is grid ready to accept edits? (EditorMode True) |
property ExtendedColSizing: Boolean; |
|
ExtendedColSizing - the sizing to be used for extended columns |
property FastEditing: Boolean; |
|
Is the FastEditing method being used? |
property FocusColor: TColor; |
|
The colour to be used for the cell receiving focus |
property FocusRectVisible: Boolean; |
|
FocusRectVisible - is the rectangle receiving focus visible? |
property GridLineColor: TColor; |
|
Colour to be used for GridLines |
property GridLineStyle: TPenStyle; |
|
Style to be used for GridLines |
property InplaceEditor: TWinControl; |
||
property SelectedColor: TColor; |
|
Colour to be used for selected cells |
property SelectedRows: TBookmarkList; |
|
SelectedRows - recorded as a bookmark list |
property OnRowMoved: TMovedEvent; |
||
published |
||
|
Specifies the placement of the control inside its Parent. |
|
property AlternateColor: TColor; |
|
The colour to be used for the background on alternate rows of the grid. Having alternate rows in different colours can make the grid easier to read. |
|
The set of anchor definitions for this control. |
|
property AutoAdvance: TAutoAdvance; |
|
Automatically advance down the grid on successive mouse clicks or presses of the ENTER or TAB key |
property AutoEdit: Boolean; |
|
Whether the Edit mode is automatically entered when a cell is selected |
property AutoFillColumns: Boolean; |
|
Automatically resize columns so they fill all grid's visible area |
property BiDiMode: TBiDiMode; |
||
property BorderSpacing: TControlBorderSpacing; |
|
Determines the inner and outer border spacing for this control. |
property BorderStyle: TBorderStyle; |
|
Allows to show a border (line) around the control, |
property CellHintPriority: TCellHintPriority; |
||
|
The background color of the control. |
|
property Columns: TDBGridColumns; |
|
The properties of the columns in this grid |
property Constraints: TSizeConstraints; |
|
The minimal and maximal Width and Height of this control. |
property DataSource: TDataSource; |
|
Provides access to the dataset displayed in the grid |
property DefaultDrawing: Boolean; |
|
Is the default drawing method to be used for this grid? Default is TRUE |
property DefaultRowHeight: Integer; |
|
Default value for the height of newly created grid rows. |
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 whether the control reacts on mouse or keyboard input. |
property FixedColor: TColor; |
|
The color for the fixed cells of the grid. |
property FixedCols: Integer; |
||
property FixedHotColor: TColor; |
|
FixedHotColor - the 'Hot' colour for the active (selected, etc) fixed cells of the grid |
property Flat: Boolean; |
|
Is the cell to be displayed Flat, ie with no texturing or raised/lowered effect |
|
The font to be used for text display in this control. |
|
property HeaderHotZones: TGridZoneSet; |
|
HeaderHotZones - the zones of the header that are under the cursor, so are capable of being selected or pushed (or not!) |
property HeaderPushZones: TGridZoneSet; |
|
HeaderPushZones - the zones of the header that have been selected by the cursor, or pushed |
property Options: TDbGridOptions; |
|
Enables or disables optional features or behaviors in the grid control |
property Options2: TGridOptions2; |
||
property OptionsExtra: TDbGridExtraOptions; |
|
Contains the extra options enabled for the grid control |
property ParentBiDiMode: Boolean; |
||
property ParentColor: Boolean; |
|
If true, the Color of the control will be the same as the one from the Parent. Default is true. |
property ParentDoubleBuffered: Boolean; |
|
|
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; |
|
The ScrollBars to be used with this grid |
property ShowHint: Boolean; |
|
Enables the Hint display. |
property TabAdvance: TAutoAdvance; |
||
|
Determines the sequence of controls, reachable 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 to be used in the grid's title |
|
property TitleImageList: TImageList; |
||
property TitleStyle: TTitleStyle; |
|
The style to be used for the grid's title |
property UseXORFeatures: Boolean; |
|
UseXORFeatures: When True, the dotted focus rectangle is painted using the XOR raster operation |
property Visible: Boolean; |
|
Allows to show or hide the control, and all of its children. |
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; |
||
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 for when the Edit button is clicked |
property OnEditingDone: TNotifyEvent; |
||
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; |
||
|
Handler for keyboard key pressed. |
|
property OnKeyPress: TKeyPressEvent; |
|
Handler for a character entered by the user. |
|
Handler for keyboard key released. |
|
property OnMouseDown: TMouseEvent; |
|
Event handler for mouse button going down. |
property OnMouseEnter: TNotifyEvent; |
||
property OnMouseLeave: TNotifyEvent; |
||
property OnMouseMove: TMouseMoveEvent; |
|
Event handler for mouse movement within the control. |
property OnMouseUp: TMouseEvent; |
|
Event handler for mouse button going up. |
property OnMouseWheel: TMouseWheelEvent; |
||
property OnMouseWheelDown: TMouseWheelUpDownEvent; |
||
property OnMouseWheelUp: TMouseWheelUpDownEvent; |
||
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; |
|
OnUserCheckboxBitmap - event handler for a user accessing a checkbox bitmap |
property OnUserCheckboxState: TDbGridCheckboxStateEvent; |
||
property OnUTF8KeyPress: TUTF8KeyPressEvent; |
|
Handler for a character entered by the user. |
|
Data-aware grid control for display and editing rows and columns in a dataset |
|
| | ||
|
TCustomDBGrid is the base class for TDBGrid |
|
| | ||
|
TCustomGrid - the base class for all 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 associated with widgets. |
|
| | ||
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 |