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

TDBGrid

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TdbGrid - a data-aware version of TStringGrid, for displaying and operating on a series of Rows and Columns from a database

Declaration

Source position: dbgrids.pas line 500

type TDBGrid = class(TCustomDBGrid)

public

  property BorderColor;

  

The colour of the border for this control

  property Canvas;

  

The drawing surface for the control, see TCanvas for details.

  property DefaultTextStyle;

  

Default style for displaying text - includes alignment, layout, single or multi-lines

  property EditorBorderStyle;

  

The border style for the editor used in this grid

  property EditorMode;

  

Is grid ready to accept edits? (EditorMode True)

  property ExtendedColSizing;

  

ExtendedColSizing - the sizing to be used for extended columns

  property FastEditing;

  

Is the FastEditing method being used?

  property FocusColor;

  

The colour to be used for the cell receiving focus

  property FocusRectVisible;

  

FocusRectVisible - is the rectangle receiving focus visible?

  property GridLineColor;

  

Colour to be used for GridLines

  property GridLineStyle;

  

Style to be used for GridLines

  property SelectedColor;

  

Colour to be used for selected cells

  property SelectedRows;

  

SelectedRows - recorded as a bookmark list

published

  property Align;

  

Specifies the placement of the control inside its Parent.

  property AlternateColor;

  

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.

  property Anchors;

  

The set of anchor definitions for this control.

  property AutoAdvance;

  

Automatically advance down the grid on successive mouse clicks or presses of the ENTER or TAB key

  property AutoEdit;

  

Whether the Edit mode is automatically entered when a cell is selected

  property AutoFillColumns;

  

Automatically resize columns so they fill all grid's visible area

  property BiDiMode;

  property BorderSpacing;

  

Determines the inner and outer border spacing for this control.

  property BorderStyle;

  

Allows to show a border (line) around the control,

  property CellHintPriority;

  property Color;

  

The background color of the control.

  property Columns;

  

The properties of the columns in this grid

  property Constraints;

  

The minimal and maximal Width and Height of this control.

  property DataSource;

  

The DataSource from which this grid displays - usually the result of a database Query

  property DefaultDrawing;

  

Is the default drawing method to be used for this grid? Default is TRUE

  property DefaultRowHeight;

  

Default value for the height of newly created grid rows.

  property DragCursor;

  

The cursor shape shown while the control is dragged.

  property DragMode;

  

Allows the user to drag the control.

  property Enabled;

  

Determines whether the control reacts on mouse or keyboard input.

  property FixedColor;

  

The color for the fixed cells of the grid.

  property FixedCols;

  property FixedHotColor;

  

FixedHotColor - the 'Hot' colour for the active (selected, etc) fixed cells of the grid

  property Flat;

  

Is the cell to be displayed Flat, ie with no texturing or raised/lowered effect

  property Font;

  

The font to be used for text display in this control.

  property HeaderHotZones;

  

HeaderHotZones - the zones of the header that are under the cursor, so are capable of being selected or pushed (or not!)

  property HeaderPushZones;

  

HeaderPushZones - the zones of the header that have been selected by the cursor, or pushed

  property Options;

  

The options available for use in this grid

  property OptionsExtra;

  

OptionsExtra - the extra options for this grid

  property ParentBiDiMode;

  property ParentColor;

  

If true, the Color of the control will be the same as the one from the Parent. Default is true.

  property ParentFont;

  

If true, the Font of the control will be the same as the one from the Parent. Default is true.

  property PopupMenu;

  

A context-sensitive menu that pops up when the right mouse button is clicked over this control

  property ReadOnly;

  

Set True to prevent writing to grid; set False to allow modification

  property Scrollbars;

  

The ScrollBars to be used with this grid

  property ShowHint;

  

Enables the Hint display.

  property TabOrder;

  

Determines the sequence of controls, reachable when the user presses the Tab key.

  property TabStop;

  

Allows the user to navigate to this control, by pressing the Tab key.

  property TitleFont;

  

The font to be used in the grid's title

  property TitleImageList;

  property TitleStyle;

  

The style to be used for the grid's title

  property UseXORFeatures;

  

UseXORFeatures: When True, the dotted focus rectangle is painted using the XOR raster operation

  property Visible;

  

Allows to show or hide the control, and all of its children.

  property OnCellClick;

  

Event handler for mouse click in a cell of the grid

  property OnColEnter;

  

Event handler if mouse enters column or it gains focus

  property OnColExit;

  

Event handler if mouse leaves column or it loses focus

  property OnColumnMoved;

  

OnColumnMoved - event handler for moving a column

  property OnColumnSized;

  

OnColumnSized - event handler for re-sizing a column

  property OnContextPopup;

  property OnDrawColumnCell;

  

Event handler if the cell in this column requires to be drawn

  property OnDblClick;

  

Event Handler for double mouse clicks.

  property OnDragDrop;

  

This handler determines the action on an drop onto this control, in a drag-drop operation.

  property OnDragOver;

  

Event handler for a control being dragged over this control.

  property OnEditButtonClick;

  

Event handler for when the Edit button is clicked

  property OnEditingDone;

  property OnEndDrag;

  

Notification handler for the end of a dragging operation.

  property OnEnter;

  

Handler for control receiving the focus.

  property OnExit;

  

Handler for control loosing the focus. This is a good place for checking the finished user input.

  property OnFieldEditMask;

  

Event handler if field is associated with an edit mask

  property OnGetCellHint;

  property OnKeyDown;

  

Handler for keyboard key pressed.

  property OnKeyPress;

  

Handler for a character entered by the user.

  property OnKeyUp;

  

Handler for keyboard key released.

  property OnMouseDown;

  

Event handler for mouse button going down.

  property OnMouseEnter;

  property OnMouseLeave;

  property OnMouseMove;

  

Event handler for mouse movement within the control.

  property OnMouseUp;

  

Event handler for mouse button going up.

  property OnPrepareCanvas;

  

OnPrepareCanvas - event handler for preparing canvas

  property OnSelectEditor;

  

OnSelectEditor - event handler for selecting editor

  property OnStartDrag;

  

Event handler for the start of a dragging operation.

  property OnTitleClick;

  

Event handler for mouse click on Title

  property OnUserCheckboxBitmap;

  

OnUserCheckboxBitmap - event handler for a user accessing a checkbox bitmap

  property OnUserCheckboxState;

  property OnUTF8KeyPress;

  

Handler for a character entered by the user.

end;

Inheritance

TDBGrid

  

TdbGrid - a data-aware version of TStringGrid, for displaying and operating on a series of Rows and Columns from a database

|

TCustomDBGrid

  

TCustomDBGrid - the base class for TDBGrid , for displaying database information in the manner of a StringGrid

|

TCustomGrid

  

TCustomGrid - the base class for all grid controls

|

TCustomControl

  

The base class for windowed controls which paint themselves.

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

Description

TdbGrid - a data-aware version of TStringGrid, for displaying and operating on a series of Rows and Columns from a database

Inherits many of its properties from TCustomGrid and, of course, from TCustomDBGrid

See also

HowToUseDataAwareControls

  

HowToUseDataAwareControls - Hints for accessing databases

HowToUseGrids

  

How to use Grids including StringGrids, DrawGrids and DbGrids