TableGrid
Description
The component is used to output search results. Through the Settings property, the component can be configured to automatically output all records of the database table, usually used for dictionary tables and for the output of child records from the database table.
Additional features
While your project is running, this component has the following features.
- You can copy the contents of a particular cell to the clipboard by holding down the Ctrl button and left-clicking on the cell.
- You can copy the contents of the selected row to the clipboard by right-clicking and selecting "Copy row" from the menu that appears.
- You can copy the entire contents of the table to the clipboard by right-clicking it and choosing "Copy all" or just Shift+Ctrl+C from the menu that appears. You can also paste the contents of the clipboard into Excel.
Component properties
Property |
Description |
Settings |
Allows you to configure the component to show records from the database. More info. |
Editable → AllowCreate |
Responsible for the ability to create new records directly in the component. |
Editable → AllowCreateEmpty |
Allows the creation of new empty records. |
Editable → AllowEdit |
Enables editing records directly in the component. |
Editable → AllowDelete |
Enables the ability to delete entries directly in the component. |
Editable → SecondClickEdit |
Determines whether you need to double-click on a cell to edit a record. |
Font → Color |
Specifies the font color to use when displaying the text. |
Font → Name |
Identifies the typeface of the font. |
Font → Size |
Specifies the height of the font in points. |
Font → Style |
Determines whether the font is normal, italic, underlined, bold, and so on. |
HeaderStyle |
Allows you to select the header style for columns. |
Increm. Search |
Allows you to select the button with the action "Search" or "SQL query", which will be automatically clicked when the user changes the value of the component for immediate search. |
Name |
Specifies the name of the component. |
Left |
Specifies the horizontal coordinate of the left edge of a component relative to its parent. |
Top |
Specifies the Y coordinate of the upper-left corner of a control, relative to its parent or containing control in pixels. |
Width |
Specifies the horizontal size of the control in pixels. |
Height |
Specifies the vertical size of the control in pixels. |
TabOrder |
Indicates the position of the control in its parent's tab order. |
TabStop |
Determines if the user can tab to a control. |
Visible |
Specifies whether the component appears onscreen. |
Anchors |
Specifies how the control is anchored to its parent. More info. |
Additional properties
Property |
Description |
AppearanceOptions |
Configuring the appearance of the component. More info. |
AutoScroll |
Determines whether the scroll will be moved automatically to make the selected entry visible. |
BiDiMode |
Specifies the bi-directional mode for the component. |
Caption |
Allows you to write an caption on the component. The caption will disappear after the component is filled with data. |
Color |
Specifies the background color of the component. |
Constraints |
Specifies the size constraints for the component. It makes sense when using the Anchors property. |
Cursor |
Specifies the image used to represent the mouse pointer when it passes into the region covered by the component. |
DefaultRowHeight |
Defines the height of the rows. |
Enabled |
Controls whether the component responds to mouse and keyboard events. |
EnableVisualStyles |
Using visual styles for headings. |
FixedCols |
Specifies the number of fixed columns that will not be affected by horizontal scrolling. |
FooterSize |
Determines the height of the footer. |
GridLinesColor |
Defines the color of the lines that separate columns and rows. |
GridLinesStyle |
Defines the style of lines that separate columns and rows. |
GridStyle |
Allows you to select the style of the component. The gsSlides style requires the use of a script, example. |
HeaderSize |
Defines the height of the headers. |
HideScrollBar |
Determines whether the vertical scroll will be hidden when it is not needed. |
HighlightedTextColor |
Defines the color of the text in the selected row or cell. |
Hint |
Hint contains the text string that appears when the user moves the mouse over the component. The hint will be shown if the ShowHint property = True |
HomeEndBehaviour |
Defines the behavior of the Home and End buttons. hebTopBottom - move between the first and last entry, hebLeftRight - move between the first and last column. |
InactiveSelectionColor |
Determines the background color of the selected row or cell when the component has no focus. |
InputSize |
Defines the height of the zone to create a new record. |
KeepUserSort |
Determines whether the component will remember the column by which the user did the sorting, otherwise the sorting is defined in the component or button settings. |
Limit |
Allows you to limit the number of records that will be retrieved from the database. |
MouseWheelEnabled |
Determines whether the component will respond to mouse scrolling. |
Options |
Additional component settings. More info. |
ReadOnly |
Allows you to disable data editing in a component. |
SelectionColor |
Defines the color of the selected row or cell. Makes sense if the AppearanceOptions → aoAlphaBlendedSelection property = False |
ShowHint |
Determines whether the control displays a Help Hint when the mouse pointer rests momentarily on the component. See also property Hint |
SortedStyle |
Allows you to set the sorted column selection style. |
WantTabs |
Determines whether the Tab key will move the focus between cells within a component or whether the component will pass the focus to another component. |