lazarus/docs/xml/lcl/dbgrids.xml
mattias 3527c5be12 docs: lazutils, issue #35319, from Don Siders
git-svn-id: trunk@60824 -
2019-04-04 06:47:47 +00:00

6312 lines
278 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<fpdoc-descriptions>
<package name="lcl">
<!-- DBGrids -->
<module name="DBGrids">
<short>
Data-aware grids to display and operate on information in a database
</short>
<descr>
<p>
<var>dbgrids.pas</var> contains classes and types needed to implement a database-aware grid control.
</p>
</descr>
<!-- unresolved type reference visibility: default -->
<element name="Classes"/>
<!-- unresolved type reference visibility: default -->
<element name="SysUtils"/>
<!-- unresolved type reference visibility: default -->
<element name="Math"/>
<!-- unresolved type reference visibility: default -->
<element name="FileUtil"/>
<!-- unresolved type reference visibility: default -->
<element name="DB"/>
<!-- unresolved type reference visibility: default -->
<element name="LazUTF8"/>
<!-- unresolved type reference visibility: default -->
<element name="LCLStrConsts"/>
<!-- unresolved type reference visibility: default -->
<element name="LCLIntf"/>
<!-- unresolved type reference visibility: default -->
<element name="LCLType"/>
<!-- unresolved type reference visibility: default -->
<element name="LMessages"/>
<!-- unresolved type reference visibility: default -->
<element name="LResources"/>
<!-- unresolved type reference visibility: default -->
<element name="Controls"/>
<!-- unresolved type reference visibility: default -->
<element name="StdCtrls"/>
<!-- unresolved type reference visibility: default -->
<element name="Graphics"/>
<!-- unresolved type reference visibility: default -->
<element name="Grids"/>
<!-- unresolved type reference visibility: default -->
<element name="Dialogs"/>
<!-- unresolved type reference visibility: default -->
<element name="Themes"/>
<!-- unresolved type reference visibility: default -->
<element name="Variants"/>
<!-- unresolved type reference visibility: default -->
<element name="Clipbrd"/>
<!-- unresolved type reference visibility: default -->
<element name="ImgList"/>
<!-- unresolved type reference visibility: default -->
<element name="Laz2_XMLCfg"/>
<!-- object visibility: default -->
<element name="EInvalidGridOperation">
<short>
Exception raised for an invalid grid operation
</short>
<descr>
<p>
<var>EInvalidGridOperation</var> is an Exception class raised when an invalid grid operations is performed.
</p>
</descr>
<seealso>
<link id="TBookmarkList.CheckActive">TBookmarkList.CheckActive</link>
</seealso>
</element>
<!-- object visibility: default -->
<element name="TColumn">
<short>
Represents a display column in a database grid
</short>
<descr>
<p>
<var>TColumn</var> is a <var>TGridColumn</var> descendant that represents a display column in a database grid control. TColumn provides properties and methods needed to access and maintain the Dataset, Field, FieldName, and DisplayFormat for the column. TColumn provides overridden functions which implement facilities from the ancestor class.
</p>
<p>
TColumn instances can be created at run-time or design-time; properties are provided to indicate when the instance was created. The display order for columns need not correspond to the order of the Fields in the dataset, nor do all Fields in the dataset need to be represented by a display column.
</p>
<p>
TColumn instances are used as the collection item for the <var>TDBGridColumns</var> collection.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure type visibility: default -->
<element name="TDatasetScrolledEvent">
<short>
Specifies an event handler signalled after scrolling a dataset
</short>
<descr>
<p>
<var>TDatasetScrolledEvent</var> specifies an event handler signalled after scrolling a dataset.TDatasetScrolledEvent can be used to perform actions required when the position in the DataSet has changed.
</p>
<p>
DataSet is the TDataset instance for the event notification.
</p>
<p>
Distance indicates both the number of rows and the direction for the event notification, for example:
</p>
<dl>
<dt><b>Value</b></dt>
<dd><b>Meaning</b></dd>
<dt><var>&lt;0</var></dt>
<dd>Scroll toward the beginning of the DataSet</dd>
<dt><var>0</var></dt>
<dd>Current row in the DataSet has been refreshed</dd>
<dt><var>&gt;0</var></dt>
<dd>Scroll toward the end of the DataSet </dd>
</dl>
<p>
TDatasetScrolledEvent is the type used for the OnDataSetScrolled property in TComponentDataLink.
</p>
<p>
See the TCustomDBGrid.OnDataSetScrolled procedure for an example implementation of TDatasetScrolledEvent.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TDatasetScrolledEvent.Dataset">
<short>Dataset for the event</short>
</element>
<!-- argument visibility: default -->
<element name="TDatasetScrolledEvent.Distance">
<short>Number of rows and direction for the event</short>
</element>
<!-- procedure type visibility: default -->
<element name="TFocusControlEvent">
<short>
Event handler signalled to coordinate Field selection and control focus
</short>
<descr>
<p>
<var>TFocusControlEvent</var> specifies an event handler signalled to coordinate Field selection and control focus.
</p>
</descr>
<seealso>
<link id="TComponentDataLink.OnFocusControl">TComponentDataLink.OnFocusControl</link>
<link id="TCustomDBGrid.OnFocusControl">TCustomDBGrid.OnFocusControl</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TFocusControlEvent.aField">
<short>Field reference for the focus event</short>
</element>
<!-- procedure type visibility: default -->
<element name="TDBGridClickEvent">
<short>
Specifies an event handler signalled when a grid column in is clicked
</short>
<descr>
<p>
<var>TDBGridClickEvent</var> specifies an event handler signalled when a column in the database grid is clicked
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TDBGridClickEvent.Column">
<short>Column for the event</short>
</element>
<!-- procedure type visibility: default -->
<element name="TMovedEvent">
<short>
Specifies an event handler signalled when the display order of rows or columns is changed
</short>
<descr>
<p>
<var>TMovedEvent</var> specifies an event handler signalled when the display order of rows or columns is changed. TMovedEvent is the type used for the OnColumnMoved and OnRowMoved properties in TDBGrid.
</p>
</descr>
<seealso>
<linlk id="#lcl.DBGrids.TCustomDBGrid.OnColumnMoved"/>
<linlk id="#lcl.DBGrids.TCustomDBGrid.OnRowMoved"/>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TMovedEvent.Sender">
<short>Grid control for the event</short>
</element>
<!-- argument visibility: default -->
<element name="TMovedEvent.FromIndex">
<short>Previous ordinal position for the event</short>
</element>
<!-- argument visibility: default -->
<element name="TMovedEvent.ToIndex">
<short>New ordinal position for the event</short>
</element>
<!-- procedure type visibility: default -->
<element name="TDrawColumnCellEvent">
<short>
Specifies an event handler for drawing a cell in a grid control
</short>
<descr>
<p>
<var>TDrawColumnCellEvent</var> specifies an event handler used to draw a cell in a column for a grid control. TDrawColumnCellEvent is the type used for the OnDrawColumnCell property in TDBGrid, and signalled from its DrawCell method.
</p>
</descr>
<seealso>
<link id ="#lcl.DBGrids.TCustomDBGrid.OnDrawColumnCell"/>
<link id ="#lcl.DBGrids.TCustomDBGrid.DrawCell"/>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TDrawColumnCellEvent.Sender">
<short>Grid control for the event`</short>
</element>
<!-- argument visibility: default -->
<element name="TDrawColumnCellEvent.Rect">
<short>Canvas rectangle where the cell is drawn</short>
</element>
<!-- argument visibility: default -->
<element name="TDrawColumnCellEvent.DataCol">
<short>Position of the Field used to get data for the event</short>
</element>
<!-- argument visibility: default -->
<element name="TDrawColumnCellEvent.Column">
<short>Column definition for the event`</short>
</element>
<!-- argument visibility: default -->
<element name="TDrawColumnCellEvent.State">
<short>Drawing state for the event</short>
</element>
<!-- procedure type visibility: default -->
<element name="TGetDbEditMaskEvent">
<short>
Specifies an event handler used to get the Edit Mask for a cell in a grid
</short>
<descr>
<p>
<var>TGetDbEditMaskEvent</var> specifies an event handler used to get the Edit Mask for a cell in a database grid control. TGetDbEditMaskEvent can be used to provide an edit mask for the specified Field. TGetDbEditMaskEvent is the type used for the OnFieldEditMask property in TDBGrid.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.OnFieldEditMask">TCustomDBGrid.OnFieldEditMask</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TGetDbEditMaskEvent.Sender">
<short>Grid control for the event</short>
</element>
<!-- argument visibility: default -->
<element name="TGetDbEditMaskEvent.Field">
<short>Field for the event</short>
</element>
<!-- argument visibility: default -->
<element name="TGetDbEditMaskEvent.Value">
<short>Default value for the edit mask</short>
</element>
<!-- enumeration type visibility: default -->
<element name="TDBGridOption">
<short>
Enumerated type containing options available for a database grid
</short>
<descr>
<p>
<var>TDBGridOption</var> is an enumerated type containing options available for a database grid control. Each enumeration value indicates if the associated feature or behavior is enabled in a database grid control.
</p>
<p>
Values from the enumeration are stored in the <var>TDBGridOptions</var> set type, and are used in the <var>TDBGrid.Options</var> property.
</p>
</descr>
<seealso>
<link id="#lcl.DBGrids.TDBGridOptions">TDBGridOptions</link>
<link id="#lcl.DBGrids.TDBGrid.Options">TDBGrid.Options</link>
</seealso>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgEditing">
<short>
Indicates cells in the grid can be edited
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgTitles">
<short>
Indicates titles are displayed for columns in the grid
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgIndicator">
<short>
Enables drawing of the row indicator for the currently selected row in the grid
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgColumnResize">
<short>
Indicates columns in the grid can be resized
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgColumnMove">
<short>
Indicates the order of columns in the grid can be changed
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgColLines">
<short>
Indicates vertical lines are drawn between columns in the grid
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgRowLines">
<short>
Indicates horizontal lines are drawn between rows in the grid
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgTabs">
<short>
Indicates the Tab key can be used to navigate between cells in the grid
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgAlwaysShowEditor">
<short>
Indicates an edit control is always displayed for the current cell in the grid
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgRowSelect">
<short>
Indicates the entire row is highlighted when selected
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgAlwaysShowSelection">
<short>
Indicates the current selection is displayed even when the control loses focus
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgConfirmDelete">
<short>
Indicates a confirmation dialog is required when deleting a record in the grid
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgCancelOnExit">
<short>
Indicates an active editing operation is cancelled when the control loses focus
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgMultiselect">
<short>
Indicates more than one cell or row can be selected in the grid
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgHeaderHotTracking">
<short>
Indicates column headers are highlighted when the column has mouse focus
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgHeaderPushedLook">
<short>
Indicates column headers are drawn with a button down appearance
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgPersistentMultiSelect">
<short>
Indicates multiple selections are retained even when the control loses focus
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgAutoSizeColumns">
<short>
Indicates columns are automatically resized to fit their content
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgAnyButtonCanSelect">
<short>
Indicates that any mouse button can change the selection in the grid
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgDisableDelete">
<short>
Indicates if deleting records with <var><b>Ctrl + Delete</b></var> is disabled
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgDisableInsert">
<short>
Indicates if inserting (or appending) records is disabled
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgCellHints">
<short>
Indicates if displaying a hint for an individual cell is enabled
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgTruncCellHints">
<short>
Indicates if cell hints are truncated when they are too long
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgCellEllipsis" dgCellEllipsis="dgCellEllipsis">
<short>
Indicates if an Ellipsis character is added to the end of cells longer than the display area for the cell
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgRowHighlight">
<short>
Indicates if the current row in the grid is highlighted instead of the current cell
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgThumbTracking">
<short>
Indicates if the current selection is changed when the mouse thumb wheel is scrolled
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgDblClickAutoSize">
<short>
Indicates if double clicking on borders or headers for a column causes it to be automatically resized to its contents
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDBGridOption.dgDisplayMemoText">
<short>
Indicates if memo content is displayed instead of the '(Memo)' string literal for ftMemo Fields
</short>
</element>
<!-- enumeration type visibility: default -->
<element name="TDbGridExtraOption">
<short>
Enumerated type that specifies extra options available in a database grid
</short>
<descr>
<p>
<var>TDbGridExtraOption</var> is an enumerated type that specifies extra options available in a database grid. Values from TDbGridExtraOption are stored in the <var>TDbGridExtraOptions</var> set type, and used in the <var>TDBGrid.OptionsExtra</var> property.
</p>
</descr>
<seealso>
<link id="#lcl.DBGrids.TDBGrid.OptionsExtra">TDBGrid.OptionsExtra</link>
</seealso>
</element>
<!-- enumeration value visibility: default -->
<element name="TDbGridExtraOption.dgeAutoColumns">
<short>
Indicates if Fields in the dataset are automatically added as columns in the database grid
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDbGridExtraOption.dgeCheckboxColumn">
<short>
Indicates that checkbox controls are used to edit Boolean Fields in the grid dataset
</short>
</element>
<!-- set type visibility: default -->
<element name="TDbGridExtraOptions">
<short>
<var>TDbGridExtraOptions</var> is a set of values from the <var>TDbGridExtraOption</var> enumeration
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- set type visibility: default -->
<element name="TDbGridOptions">
<short>
Stores values from the <var>TDbGridOption</var> enumeration
</short>
<descr>
<var>TDbGridOptions</var> is a set type used to store values from the <var>TDbGridOption</var> enumeration. <var>TDbGridOptions</var> is the type used for the <var>TDBGrid.Options</var> property.
</descr>
<seealso>
<link id="TDBGridOption">TDBGridOption</link>
<link id="TDBGrid.Options">TDBGrid.Options</link>
</seealso>
</element>
<!-- enumeration type visibility: default -->
<element name="TDbGridStatusItem">
<short>
Enumerated type with values for status messages in a database grid
</short>
<descr>
<p>
<var>TDbGridStatusItem</var> is an enumerated type with values for status messages used in a database grid. Values from TDbGridStatusItem are stored in <var>TDbGridStatus</var>, and used in the <var>TDBGrid.GridStatus</var> property.
</p>
</descr>
<seealso>
<link id="#lcl.DBGrids.TDbGridStatus">TDbGridStatus</link>
<link id="#lcl.DBGrids.TDBGrid.GridStatus">TDBGrid.GridStatus</link>
</seealso>
</element>
<!-- enumeration value visibility: default -->
<element name="TDbGridStatusItem.gsUpdatingData">
<short>
Indicates the grid is updating after a change in data
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDbGridStatusItem.gsAddingAutoColumns">
<short>
Indicates automatic columns are being added for the grid control
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDbGridStatusItem.gsRemovingAutoColumns">
<short>
Indicates automatic columns are being removed from the grid control
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDbGridStatusItem.gsAutoSized">
<short>
Indicates automatically sized columns are currently in use in the grid control
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDbGridStatusItem.gsStartEditing">
<short>
Indicates the data link for a grid control is updating the value in its Editing property
</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TDbGridStatusItem.gsLoadingGrid">
<short>
Indicates the grid control is loading its settings from a file or stream
</short>
</element>
<!-- set type visibility: default -->
<element name="TDbGridStatus">
<short>
Set type used to store <var>TDbGridStatusItem</var> enumeration values
</short>
<descr>
<p>
<var>TDbGridStatus</var> is a set type used to store <var>TDbGridStatusItem</var> enumeration values. Values added to TDbGridStatus indicate that a feature or behavior has been enabled in a TDBGrid control.
</p>
<p>
TDbGridStatus is used to implement the <var>TDBGrid.GridStatus</var> property.
</p>
</descr>
<seealso>
<link id="#lcl.DBGrids.TDbGridStatusItem">TDbGridStatusItem</link>
<link id="#lcl.DBGrids.TDBGrid.GridStatus">TDBGrid.GridStatus</link>
</seealso>
</element>
<!-- procedure type visibility: default -->
<element name="TDbGridSelEditorEvent">
<short>
Specifies an event handler used to select a cell editor in a database grid
</short>
<descr>
<p>
<var>TDbGridSelEditorEvent</var> specifies an event handler used to
select an editor for a cell in a database grid.
</p>
</descr>
<seealso>
<link id="#lcl.DBGrids.TDBGrid.OnSelectEditor">TDBGrid.OnSelectEditor</link>
<link id="#lcl.DBGrids.TDBGrid.SelectEditor">TDBGrid.SelectEditor</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TDbGridSelEditorEvent.Sender">
<short>Control signalling the event</short>
</element>
<!-- argument visibility: default -->
<element name="TDbGridSelEditorEvent.Column">
<short>Column for the control</short>
</element>
<!-- argument visibility: default -->
<element name="TDbGridSelEditorEvent.Editor">
<short>Editor for the specified column</short>
</element>
<!-- procedure type visibility: default -->
<element name="TPrepareDbGridCanvasEvent">
<short>
Specifies an event handler which prepares the canvas for drawing a database grid
</short>
<descr>
<p>
<var>TPrepareDbGridCanvasEvent</var> specifies an event handler used to prepare the canvas which draws the content in a database grid. TPrepareDbGridCanvasEvent allows an application to override or enhance the drawing behavior of cells in a database grid.
</p>
<p>
<var>TPrepareDbGridCanvasEvent</var> is used to implement the <var>OnPrepareCanvas</var> event handler in <var>TDBGrid</var>.
</p>
</descr>
<seealso>
<link id="#lcl.DBGrids.TDBGrid.OnPrepareCanvas">TDBGrid.OnPrepareCanvas</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TPrepareDbGridCanvasEvent.Sender">
<short>Control signalling the event</short>
</element>
<!-- argument visibility: default -->
<element name="TPrepareDbGridCanvasEvent.DataCol">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TPrepareDbGridCanvasEvent.Column">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TPrepareDbGridCanvasEvent.AState">
<short>Drawing state for the selection</short>
</element>
<!-- enumeration type visibility: default -->
<element name="TBookmarkedRecordEnumeratorOptions">
<short>
Enumeration with option values for the bookmarked record enumerator
</short>
<descr>
<p>
<var>TBookmarkedRecordEnumeratorOptions</var> is a set type with option values that control the actions performed in <var>TBookmarkedRecordEnumerator</var>.
TBookmarkedRecordEnumeratorOptions is the type used to implement the <var>TBookmarkedRecordEnumerator.Options</var> property.
</p>
</descr>
<seealso>
<link id="TBookmarkedRecordEnumerator">TBookmarkedRecordEnumerator</link>
</seealso>
</element>
<!-- enumeration value visibility: default -->
<element name="TBookmarkedRecordEnumeratorOptions.breDisableDataset">
<short>Disables controls attached to the dataset</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TBookmarkedRecordEnumeratorOptions.breStopOnInvalidBookmark">
<short>Stops enumerating when an invalid bookmark is encountered</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TBookmarkedRecordEnumeratorOptions.breRestoreCurrent">
<short>Restores the current bookmark when exiting the enumerator</short>
</element>
<!-- object visibility: default -->
<element name="TBookmarkedRecordEnumerator">
<short>Defines a bookmarked record enumeration class</short>
<descr>
<p>
<var>TBookmarkedRecordEnumerator</var> is a Class which defines a bookmarked record enumerator for use in <var>TBookmarklist</var>.
</p>
</descr>
<seealso>
<link id="#lcl.DBGrids.TBookmarkList">TBookmarkList</link>
</seealso>
</element>
<!-- variable visibility: private -->
<element name="TBookmarkedRecordEnumerator.fBookmarkList"/>
<!-- variable visibility: private -->
<element name="TBookmarkedRecordEnumerator.fBookmarkIndex"/>
<!-- variable visibility: private -->
<element name="TBookmarkedRecordEnumerator.fCurrent"/>
<!-- variable visibility: private -->
<element name="TBookmarkedRecordEnumerator.fBook"/>
<!-- variable visibility: private -->
<element name="TBookmarkedRecordEnumerator.fDataset"/>
<!-- variable visibility: private -->
<element name="TBookmarkedRecordEnumerator.fOptions"/>
<!-- constructor visibility: public -->
<element name="TBookmarkedRecordEnumerator.Create">
<short>
Constructor for the class instance
</short>
<descr>
<p>
<var>Create</var> is the constructor for the class instance. Create calls the inherited constructor, and stores the arguments to the method in its BookmarkList, Dataset, and Options properties.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TBookmarkedRecordEnumerator.Create.bookList">
<short>Bookmark list for the enumerator</short>
</element>
<!-- argument visibility: default -->
<element name="TBookmarkedRecordEnumerator.Create.aGrid">
<short>Grid control for the enumerator</short>
</element>
<!-- argument visibility: default -->
<element name="TBookmarkedRecordEnumerator.Create.anOptions">
<short>Options for the enumerator</short>
</element>
<!-- destructor visibility: public -->
<element name="TBookmarkedRecordEnumerator.Destroy">
<short>
Destructor for the class instance
</short>
<descr>
<p>
<var>Destroy</var> is the destructor for the class instance. Destroy uses values in the Options property to perform actions needed before the class instance is freed, including:
</p>
<ul>
<li>Restore the dataset to the position in Bookmark</li>
<li>Re-enable controls attached to the dataset if disabled</li>
</ul>
<p>
Destroy calls the inherited destructor before exit.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function visibility: public -->
<element name="TBookmarkedRecordEnumerator.MoveNext">
<short>
Moves to the next bookmark in the list
</short>
<descr>
<p>
<var>MoveNext</var> is a Boolean function used to move the enumerator to the next item in the bookmark list. Move next increments the value in BookmarkIndex, and examines the Options property to see if any actions are required, such as: setting the value of the Current Bookmark before navigation, or disabling controls attached to the dataset.
</p>
<p>
MoveNext updates the current bookmark and checks the dataset to see if the bookmark is still valid. The return value is False if the record for the bookmark no longer exists in the dataset and Options indicates the enumerator should halt for an invalid bookmark. False is also returned when the value in BookmarkIndex exceeds the number of items in the BookmarkList.
</p>
<p>
The return value is True when the action has been performed successfully.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TBookmarkedRecordEnumerator.MoveNext.Result">
<short>True when the action has been performed successfully</short>
</element>
<!-- function visibility: public -->
<element name="TBookmarkedRecordEnumerator.GetEnumerator">
<short>
Returns the current class instance
</short>
<descr>
<p>
<var>GetEnumerator</var> is a TBookmarkedRecordEnumerator function used to the current class instance.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TBookmarkedRecordEnumerator.GetEnumerator.Result">
<short>The current class instance</short>
</element>
<!-- property visibiity: public -->
<element name="TBookmarkedRecordEnumerator.Current">
<short>
Current bookmark for the enumerator
</short>
<descr>
<p>
<var>Current</var> is a read-only TBookmark property which returns the current bookmark for the enumerator. The value in Current in updated when the MoveNext method is called.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibiity: public -->
<element name="TBookmarkedRecordEnumerator.Options">
<short>
Controls the actions performed when Bookmarks are visited
</short>
<descr>
<p>
<var>Options</var> is a TBookmarkedRecordEnumeratorOptions property which controls the actions performed when Bookmarks in the enumerator are visited. Values are included in the set type to enable the corresponding feature in the enumerator.
</p>
<p>
See TBookmarkedRecordEnumeratorOptions for more information about option values and their meanings.
</p>
</descr>
<seealso>
</seealso>
</element>
<!-- object visibility: default -->
<element name="TBookmarkList">
<short>
<var>TBookmarkList</var> implements a list of Bookmarks in a database grid
</short>
<descr>
<p>
<var>TBookmarkList</var> is a class used to implement a list of Bookmarks in a database grid. <var>TBookmarkList</var> is the type used for the <var>SelectedRows</var> property in <var>TDBGrid</var>.
</p>
</descr>
<seealso>
<link id="TDBGrid.SelectedRows" >TDBGrid.SelectedRows</link>
</seealso>
</element>
<!-- variable visibility: private -->
<element name="TBookmarkList.FList"/>
<!-- variable visibility: private -->
<element name="TBookmarkList.FGrid"/>
<!-- function visibility: private -->
<element name="TBookmarkList.GetCount">
<short>
Gets the value for the Count property
</short>
<descr>
<var>GetCount</var> is an Integer function that implements the read access specifier for the Count property. Use the Items property to access TBookmark instances stored in the list.
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TBookmarkList.GetCount.Result">
<short>Number of bookmarks in the list</short>
</element>
<!-- function visibility: private -->
<element name="TBookmarkList.GetCurrentRowSelected">
<short>
Gets the value in the for the CurrentRowSelected property
</short>
<descr>
<p>
<var>GetCurrentRowSelected</var> is a Boolean function that implements the read access specifier for the CurrentRowSelected property. GetCurrentRowSelected calls the CheckActive method to ensure that the Dataset for the list is properly configured. See CheckActive for more information.
</p>
<p>
The return value is True when a TBookmark instance for the current row already exists in the list.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TBookmarkList.GetCurrentRowSelected.Result">
<short>True when a bookmark for the current row already exists in the list</short>
</element>
<!-- function visibility: private -->
<element name="TBookmarkList.GetItem">
<short>
Gets the value for the bookmark stored at the specified position in the list
</short>
<descr>
<p>
<var>GetItem</var> is a TBookmark function that implements the read access specifier for the Items property. GetItems returns the bookmark stored at the specified ordinal position in the list. AIndex is the ordinal position to retrieve in the range <var>0 .. Count - 1</var>. Use the Items property to access the bookmarks stored in the list.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TBookmarkList.GetItem.Result">
<short>The bookmark at the specified position</short>
</element>
<!-- argument visibility: default -->
<element name="TBookmarkList.GetItem.AIndex">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TBookmarkList.SetCurrentRowSelected">
<short>
Sets the value in the CurrentRowSelected property
</short>
<descr>
<p>
<var>SetCurrentRowSelected</var> is a procedure which provides write access for the CurrentRowSelected property. SetCurrentRowSelected gets a bookmark for the current row, and calls Find to determine if the bookmark already exists in the list. When AValue contains False, an existing bookmark is freed and removed from the bookmark list. A Bookmark not in the list is created and added when AValue is True.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TBookmarkList.SetCurrentRowSelected.AValue">
<short>
True to select the current row. False to de-selected the current row
</short>
</element>
<!-- procedure visibility: private -->
<element name="TBookmarkList.CheckActive">
<short>
Ensures that the dataset for the bookmark list is properly configure and active
</short>
<descr>
<p>
CheckActive is a procedure used to ensure that the bookmark list is active and properly configured. CheckActive examines the DataLink for the Grid to determine if it is active. An EInvalidGridOperation exception is raised if the dataset is not already active.
</p>
<p>
CheckActive compares the datasets in the bookmark list and the associated Grid control. If they are the same Dataset, no additional processing is performed in the method. Otherwise, the Dataset for the bookmark list is set to the Dataset from the associated Grid control.
</p>
</descr>
<errors>
<dl>
<dt>EInvalidGridOperation</dt>
<dd>
Raised when the DataLink in the Grid control has an inactive Dataset;
exception message is 'Dataset Inactive'.
</dd>
</dl>
</errors>
<seealso></seealso>
</element>
<!-- constructor visibility: public -->
<element name="TBookmarkList.Create">
<short>
<var>Create</var> is the constructor for TBookmarkList
</short>
<descr>
<p>
<var>Create</var> is the constructor for the TBookmarkList class instance. Create calls the inherited constructor. Create stores the AGrid argument internally to keep an association to the grid for the Bookmarks. Finally, Create initializes the internal list used to store Bookmarks added to the class instance.
</p>
</descr>
<seealso>
<link id="#rtl.System.TObject.Create">TObject.Create</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TBookmarkList.Create.AGrid">
<short>Grid control that owns the bookmark list</short>
</element>
<!-- destructor visibility: public -->
<element name="TBookmarkList.Destroy">
<short>
<var>Destroy</var> is the destructor for <var>TBookmarkList</var>
</short>
<descr>
<p>
<var>Destroy</var> is an overridden destructor for the <var>TBookmarkList</var> class instance. Destroy ensures that <var>TBookmark</var> items are removed from the list and freed before the list is freed. Destroy calls the inherited destructor.
</p>
</descr>
<seealso>
<link id="TBookmark" >TBookmark</link>
</seealso>
</element>
<!-- procedure visibility: public -->
<element name="TBookmarkList.Clear">
<short>
<var>Clear</var> removes all Items in the bookmark list
</short>
<descr>
<p>
<var>Clear</var> is a procedure used to remove all of the Items stored in the list. Clear calls the TDataset.FreeBookmark method for each of the TBookmark instances in Items. The length of the Bookmark is set to 0 to decrease the reference count for the memory allocation.
</p>
<p>
Clear uses the Invalidate method in the associated Grid control to force it to be redrawn.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: public -->
<element name="TBookmarkList.Delete">
<short>
Deletes rows in the Dataset represented by bookmarks in the list
</short>
<descr>
<p>
<var>Delete</var> is a procedure used to delete rows in the Dataset represented by bookmarks in the list. Delete processes the Items in the list in reverse order. Each bookmark is located in the Dataset and the TDataset.Delete method is called to remove the data from the dataset. The Dataset.FreeBookmark method is called to free the Bookmark, and it is removed from the Items in the list.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function visibility: public -->
<element name="TBookmarkList.Find">
<short>
<var>Find</var> locates the specified Bookmark and its position in the list
</short>
<descr>
<p>
<var>Find</var> is a Boolean function used to locate the specified bookmark in the Items for the bookmark list. AIndex contains the position in the list where the bookmark was located. The return value is True when the specified bookmark is located in the bookmark list.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TBookmarkList.Find.Result">
<short>True when the bookmark is located in the list</short>
</element>
<!-- argument visibility: default -->
<element name="TBookmarkList.Find.Item">
<short>Bookmark to locate</short>
</element>
<!-- argument visibility: default -->
<element name="TBookmarkList.Find.AIndex">
<short>Position in the list for the bookmark</short>
</element>
<!-- function visibility: public -->
<element name="TBookmarkList.IndexOf">
<short>
<var>IndexOf</var> returns the ordinal position for the specified Bookmark in the list
</short>
<descr>
<p>
<var>IndexOf</var> is an Integer function used to get the ordinal position in the list for the specified Bookmark. The return value contains the position in the list where the TBookmark instance was located. IndexOf calls Find to locate the bookmark and to capture the return value for the method. The return value is in the range <var>0..Count-1</var> when the bookmark exists in the list or <var>-1</var> when the bookmark is not found.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TBookmarkList.IndexOf.Result">
<short>Position in the list for the bookmark</short>
</element>
<!-- argument visibility: default -->
<element name="TBookmarkList.IndexOf.Item">
<short>Bookmark to find in the list</short>
</element>
<!-- function visibility: public -->
<element name="TBookmarkList.Refresh">
<short>
Searches for and removes invalid Bookmarks in the list
</short>
<descr>
<p>
<var>Refresh</var> searches for and removes invalid Bookmarks in the list; returns True if the action was successful.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TBookmarkList.Refresh.Result">
<short>True when the refresh action was successful</short>
</element>
<!-- property visibility: public -->
<element name="TBookmarkList.Count">
<short>
Indicates the number of Bookmarks in the list
</short>
<descr>
<p>
<var>Count</var> is a read-only Integer property that indicates the number of Bookmarks in the list. GetCount is the read access specifier for the property value.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TBookmarkList.CurrentRowSelected">
<short>
Indicates if the current row in the Dataset is selected
</short>
<descr>
<p>
<var>CurrentRowSelected</var> is a Boolean property that indicates if the current row in the Dataset is selected.
</p>
<p>
GetCurrentRowSelected is the read access specifier for the property value. GetCurrentRowSelected checks to see if the Bookmark for the current row exists in BookmarkList.
</p>
<p>
SetCurrentRowSelected is the write access specifier for the property value. SetCurrentRowSelected tries to locate a Bookmark for the current row in the Dataset, and adds or removes the Bookmark based on the AValue argument. The Grid control is redrawn after changing the selection state for the row.
</p>
</descr>
<seealso>
</seealso>
</element>
<!-- property visibility: public -->
<element name="TBookmarkList.Items">
<short>
Provides indexed access to Bookmarks in the list
</short>
<descr>
<p>
<var>Items</var> is a read-only TBookmark property that provides indexed access to Bookmarks in the list. Bookmarks can be accessed by their ordinal position in the list (in the range <var>0..Count-1</var>).
</p>
<p>
GetItem is the read access specifier for the Items property, and retrieves the TBookmark stored at the specified position in the list.
</p>
<p>
Items is the default property in TBookmarkList.
</p>
<p>
Use CurrentSelectedRow, Clear, Delete, and Refresh to maintain bookmarks stored in the list.
</p>
</descr>
<seealso>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TBookmarkList.Items.AIndex">
<short>Ordinal position for the bookmark to retrieve from the list</short>
</element>
<!-- function visibility: public -->
<element name="TBookmarkList.GetEnumerator">
<short>
Gets an enumerator for the bookmark list
</short>
<descr>
<p>
<var>GetEnumerator</var> is a TBookmarkedRecordEnumerator function used to get an enumerator for bookmarked records in the list. GetEnumerator creates an instance of TBookmarkedRecordEnumerator with the specified arguments, and uses the instance as the return value for the method.
</p>
</descr>
<seeslo>
<link id="TBookmarkedRecordEnumerator">TBookmarkedRecordEnumerator</link>
</seeslo>
</element>
<!-- function result visibility: default -->
<element name="TBookmarkList.GetEnumerator.Result">
<short>The bookmark list enumerator</short>
</element>
<!-- argument visibility: default -->
<element name="TBookmarkList.GetEnumerator.opt">
<short>Options to use in the bookmark list enumerator</short>
</element>
<!-- enumeration type visibility: default -->
<element name="TColumnOrder">
<short>
Enumerated type defining alternate ordering for columns
</short>
<descr>
<p>
<var>TColumnOrder</var> is an enumerated type which defines alternate ordering for columns in a collection. The values specify whether the design-time or run-time index is used when ordering TColumn instances in the TDBGridColumns collection.
</p>
</descr>
<seealso>
<link id="#lcl.DBGrids.TColumn">TColumn</link>
<link id="#lcl.DBGrids.TDBGridColumns">TDBGridColumns</link>
<link id="#lcl.DBGrids.TDBGrid.Columns">TDBGrid.Columns</link>
</seealso>
</element>
<!-- enumeration value visibility: default -->
<element name="TColumnOrder.coDesignOrder">
<short>Columns are ordered using the DesignIndex value</short>
</element>
<!-- enumeration value visibility: default -->
<element name="TColumnOrder.coFieldIndexOrder">
<short>Columns are order by the Index for the Field</short>
</element>
<!-- TComponentDataLink starts here -->
<!-- object visibility: default -->
<element name="TComponentDataLink" link="#fcl.DB.TDataLink">
<short>
Maintains an association between a component and a dataset
</short>
<descr>
<p>
<var>TComponentDataLink</var> is a TDatalink descendant that maintains an association between a component and its linked dataset. TComponentDataLink coordinates the actions of the component and the dataset, and allows the component to respond to data events. TComponentDataLink defines event handlers which can be used to forward dataset events to the component implementation.
</p>
<p>
TComponentDataLink is the type used to implement the <var>TDBGrid.DataLink</var> property.
</p>
</descr>
<seealso>
<link id="TDBGrid.DataLink">TDBGrid.DataLink</link>
</seealso>
</element>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FDataset"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FDatasetName"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FModified"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FOnDatasetChanged"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FOnDataseClose"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FOnDataseOpen"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FOnDataseScrolled"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FOnFocusControl"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FOnEditingChanged"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FOnInvalidDataset"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FOnInvalidDataSource"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FOnLayoutChanged"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FOnNewdataset"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FOnRecordChanged"/>
<!-- variable visibility: private -->
<element name="TComponentDataLink.FOnUpdateData"/>
<!-- function visibility: private -->
<element name="TComponentDataLink.GetDatasetName">
<short>
Gets the value for the DatasetName property
</short>
<descr>
<p>
<var>GetDatasetName</var> is a String function that provides the value for the DataSetName property. GetDatasetName returns the value in the Name property for the DataSet.
</p>
<p>
Use DatasetName to read or write the value for the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TComponentDataLink.GetDatasetName.Result">
<short>Name for the linked dataset</short>
</element>
<!-- function visibility: private -->
<element name="TComponentDataLink.GetFields">
<short>
Gets the Field at the specified position
</short>
<descr>
<p>
<var>GetFields</var> is a TField function that implements read access for the Fields property. GetFields returns the TField instance at the specified position in the Fields for the dataset. The return value is <var><b>Nil</b></var> if Index is not in the range <var>0..FieldCount-1</var>.
</p>
<p>
Use Fields to read or write values in the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TComponentDataLink.GetFields.Result">
<short>Field stored at the specified position</short>
</element>
<!-- argument visibility: default -->
<element name="TComponentDataLink.GetFields.Index">
<short>Position to get from the Fields in the dataset</short>
</element>
<!-- procedure visibility: private -->
<element name="TComponentDataLink.SetDatasetName">
<short>
Sets the name for the dataset
</short>
<descr>
<p>
<var>SetDatasetName</var> is a procedure used to store the specified value in the DatasetName property. SetDatasetName is the write access specifier for the DatasetName property. The value in AValue is stored in the member variable for the class instance. It does not change the value stored the linked TDataset.
</p>
<p>
Use DatasetName to read or write the value for the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TComponentDataLink.SetDatasetName.AValue">
<short>Name to use for the dataset</short>
</element>
<!-- procedure visibility: protected -->
<element name="TComponentDataLink.RecordChanged">
<short>
Signals the <var>OnRecordChanged</var> event handler when assigned
</short>
<descr>
<p>
<var>RecordChanged</var> is an overridden procedure used to signal the OnRecordChanged event handler when the specified Field is changed. RecordChanged calls the event handler when it has been assigned in the class instance. No action is performed when OnRecordChanged has not been assigned.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink.RecordChanged">TDataLink.RecordChanged</link>
<link id="TComponentDataLink.OnRecordChanged">TComponentDataLink.OnRecordChanged</link>
<link id="TDBGrid.OnRecordChanged">TDBGrid.OnRecordChanged</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TComponentDataLink.RecordChanged.Field">
<short>Modified Field for the event notification</short>
</element>
<!-- procedure visibility: protected -->
<element name="TComponentDataLink.DatasetChanged">
<short>
Signals the <var>OnDatasetChanged</var> event handler when assigned
</short>
<descr>
<p>
<var>DatasetChanged</var> is a procedure used to signal the OnDatasetChanged event handler when the dataset has been changed. DatasetChanged calls the event handler when it has been assigned in the class instance. No action is performed when OnDatasetChanged has not been assigned.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink.DatasetChanged">TDataLink.DatasetChanged</link>
<link id="TComponentDataLink.OnDatasetChanged">TComponentDataLink.OnDatasetChanged</link>
<link id="TDBGrid.OnDatasetChanged">TDBGrid.OnDatasetChanged</link>
</seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TComponentDataLink.ActiveChanged">
<short>
Signals an event handler when the Active property is changed
</short>
<descr>
<p>
<var>ActiveChanged</var> is a procedure used to call event handlers when the value in Active is changed.
</p>
<p>
When Active contains True, the Dataset for the class is read and compared to the value in the DatasetName property. When it differs from the stored value the change is for a new dataset, and the OnNewDataset event handler is signalled. If DatasetName is the same as the stored value, the OnDataseOpen event handler is signalled.
</p>
<p>
When Active contains False, the Datasource and Dataset are checked to ensure that the contain valid class instances. If Datasource is unassigned, the OnInvalidDataSource event handler is signalled. If Dataset is unassigned, the Dataset is being freed, and the OnInvalidDataSet event handler is signalled. If Dataset is assigned, the dataset has been closed and the OnDataSetClose event handler is signalled.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink.ActiveChanged">TDataLink.ActiveChanged</link>
</seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TComponentDataLink.LayoutChanged">
<short>
Signals the OnLayoutChanged event handler when assigned
</short>
<descr>
<p>
<var>LayoutChanged</var> is a procedure used to signal the OnLayoutChanged event handler when assigned in the class instance.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink.LayoutChanged">TDataLink.LayoutChanged</link>
<link id="TDBGrid.OnLayoutChanged">TDBGrid.OnLayoutChanged</link>
</seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TComponentDataLink.DatasetScrolled">
<short>
Signals the OnDataSetScrolled event handler when assigned
</short>
<descr>
<p>
<var>DatasetScrolled</var> is a procedure used to signal the OnDataSetScrolled event handler when it has been assigned in the class instance.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink.DatasetScrolled">TDataLink.DatasetScrolled</link>
<link id="TDBGrid.OnDataSetScrolled">TDBGrid.OnDataSetScrolled</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TComponentDataLink.DatasetScrolled.Distance">
<short>Number of records for the event notification</short>
</element>
<!-- procedure visibility: protected -->
<element name="TComponentDataLink.FocusControl" link="#fcl.db.TDataLink.FocusControl">
<short>
Signal the OnFocusControl event handler when assigned
</short>
<descr>
<p>
<var>FocusControl</var> is a procedure used to signal the OnFocusControl event handler when assigned in the class instance.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TComponentDataLink.FocusControl.Field">
<short>Field receiving focus in the event notification</short>
</element>
<!-- procedure visibility: protected -->
<element name="TComponentDataLink.CheckBrowseMode" link="#fcl.db.TDataLink.CheckBrowseMode">
<short>
Calls the inherited method
</short>
<descr>
<p>
<var>CheckBrowseMode</var> is a procedure used to call the inherited method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TComponentDataLink.EditingChanged">
<short>
Signals the OnEditingChanged event handler when assigned
</short>
<descr>
<p>
<var>EditingChanged</var> is a procedure used to signal the OnEditingChanged event handler when assigned in the class instance.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink.EditingChanged">TDataLink.EditingChanged</link>
</seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TComponentDataLink.UpdateData">
<short>
Signals the OnUpdateData event handler when assigned
</short>
<descr>
<p>
<var>UpdateData</var> is a procedure used to signal the OnUpdateData event handler when assigned in the class instance.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink.UpdateData">TDataLink.UpdateData</link>
</seealso>
</element>
<!-- function visibility: protected -->
<element name="TComponentDataLink.MoveBy" link="#fcl.db.TDataLink.MoveBy">
<short>
Moves the position in the dataset by the specified number of rows
</short>
<descr>
<p>
<var>MoveBy</var> is an Integer function used to move the current position in the dataset by the specified number of rows. MoveBy calls the inherited method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TComponentDataLink.MoveBy.Result">
<short>Actual number of rows moved in the method</short>
</element>
<!-- argument visibility: default -->
<element name="TComponentDataLink.MoveBy.Distance">
<short>Number of rows to move in the dataset</short>
</element>
<!-- procedure visibility: public -->
<element name="TComponentDataLink.Modified">
<short>
Indicates if the component or the linked dataset has been changed
</short>
<descr>
<p>
<var>Modified</var> is a Boolean property that indicates if the component or the linked dataset has been changed.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.OnRecordChanged">
<short>
<var>OnRecordChanged</var> - event handler for a change in the current record
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.OnDatasetChanged">
<short>
<var>OnDataseChanged</var> - event handler for a change in the attached dataset
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.OnNewdataset">
<short>
<var>OnNewdataset</var> - event handler for formation of a link to a new dataset
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.OnDatasetOpen">
<short>
<var>OnDataseOpen</var> - event handler when the dataset is open
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.OnInvalidDataset">
<short>
<var>OnInvalidDataset</var> - event handler when the dataset is invalid
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.OnInvalidDataSource">
<short>
<var>OnInvalidDataSource</var> - event handler when the data source is invalid
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.OnFocusContol">
<short>Event handler signalled when the grid control receives focus</short>
<descr>
<p>
<var>OnFocusControl</var> is a TFocusControlEvent property that implements an event handler signalled when the grid control receives focus.
</p>
</descr>
<seealso>
<link id="TFocusControlEvent">TFocusControlEvent</link>
</seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.OnLayoutChanged">
<short>
<var>OnLayoutChanged</var> - event handler when the layout of the dataset has
changed
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.OnDatasetClose">
<short>
<var>OnDataseClose</var> - event handler when the dataset is closed
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.OnDatasetScrolled">
<short>
<var>OnDataseScrolled</var> - event handler when the dataset is scrolled
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.OnEditingChanged">
<short>
<var>OnEditingChanged</var> - event handler for a change in the
<var>Editing</var> property
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.OnUpdateData">
<short>
<var>OnUpdateData</var> - event handler for implementing any pending changes to
data
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.DatasetName">
<short>
<var>DatasetName</var> - the (string) name of the attached dataset
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.Fields">
<short>
<var>Fields</var> - an indexed array containing the Fields of the dataset
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TComponentDataLink.Fields.Index">
<short></short>
</element>
<!-- property visibility: public -->
<element name="TComponentDataLink.VisualControl" link="#fcl.db.TDataLink.VisualControl">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- TColumnTitle -->
<!-- object visibility: default -->
<element name="TColumnTitle">
<short>
<var>TColumnTitle</var> is a <var>TGridColumnTitle</var> descendant
</short>
<descr>
<p>
<var>TColumnTitle</var> is a <var>TGridColumnTitle</var> descendant which ensures the correct caption is used as the title for a column in a data-aware grid.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function visibility: protected -->
<element name="TColumnTitle.GetDefaultCaption">
<short>Gets the default caption used as the title for the grid column</short>
<descr>
<p>
<var>GetDefaultCaption</var> is an overridden String function in
<var>TColumnTitle</var> which provides the default caption used as the title
for a grid column.
</p>
<p>
If a Field has been created for the column, the value of its DisplayName
property is used as the caption. If only the FieldName property is set, it is
used as the caption. Otherwise, the inherited method is called to get the
default caption for the column.
</p>
</descr>
<seealso>
<link id="#fcl.db.TField">TField</link>
<link id="TColumn">TColumn</link>
<link id="#lcl.Grids.TGridColumnTitle.GetDefaultCaption">TGridColumnTitle.GetDefaultCaption</link>
</seealso>
</element>
<!-- function result visibility: defult -->
<element name="TColumnTitle.GetDefaultCaption.Result">
<short>Default value used as the title for the column</short>
</element>
<!-- TColumn starts here -->
<!-- object visibility: default -->
<element name="TColumn">
<short>
Implements a display column for the TDBGrid control
</short>
<descr>
<p>
<var>TColumn </var> is a TGridColumn descendant which implements a display column for the TDBGrid grid control. TColumn extends the ancestor class to provide support for using TField for data access, display formatting, alignment, as well as use of checkbox and lookuplist Fields. TColumn also implements support for features in TDBGrid like: automatic rows, and design-time vs run-time column ordering.
</p>
<p>
TColumn is the class type used for items in the TDBGridColumns collection.
</p>
</descr>
<seealso>
<link id="TDBGrid.Columns">TDBGrid.Columns</link>
<link id="TDBGridColumns">TDBGridColumns</link>
<link id="#lcl.Grids.TGridColumn">TGridColumn</link>
<link id="#fcl.DB.TField">TField</link>
<link id="#fcl.DB.TDataset">TDataset</link>
</seealso>
</element>
<!-- variable visibility: private -->
<element name="TColumn.FDisplayFormat"/>
<element name="TColumn.FDisplayFormatChanged"/>
<element name="TColumn.FFieldName"/>
<element name="TColumn.FField"/>
<element name="TColumn.FIsAutomaticColumn"/>
<element name="TColumn.FDesignIndex"/>
<!-- procedure visibility: private -->
<element name="TColumn.ApplyDisplayFormat">
<short>
Applies a new display format to the Field which gets data for the column
</short>
<descr>
<p>
<var>ApplyDisplayFormat</var> is a procedure used to apply a new value in DisplayFormat to the Field used to get data for the column. Field must contain a valid TField instance, or no actions are performed in the method.
</p>
<p>
ApplyDisplayFormat ensures that the new value for DisplayFormat is properly applied to Fields using the TNumericField or TDateTimeField class types. ApplyDisplayFormat is used in the implementation of the LinkField method.
</p>
</descr>
<seealso>
<link id="TColumn.LinkField">TColumn.LinkField</link>
</seealso>
</element>
<!-- function visibility: private -->
<element name="TColumn.GetDataset">
<short>Gets the Dataset for the column</short>
<descr>
<p>
<var>GetDataset</var> is a TDataset function used to get the dataset which provides data for the column. GetDataset uses Grid (cast to a TCustomDBGrid instance) to access its DataLink and get the DataSet for the column definition. The return value is <var><b>Nil</b></var> if Grid has not been assigned for the column.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.TGridColumn.Grid">TGridColumn.Grid</link>
<link id="TCustomDBGrid">TCustomDBGrid</link>
<link id="#fcl.db.TDataset">TDataset</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetDataset.Result">
<short>Dataset for the column definition</short>
</element>
<!-- function visibility: private -->
<element name="TColumn.GetDisplayFormat">
<short>
Get the value for the DisplayFormat property
</short>
<descr>
<p>
<var>GetDisplayFormat</var> is a String function used to get the value for the DisplayFormat property. The value in the member variable is returned when it is different than the stored value for DisplayFormat. Otherwise, the value from GetDefaultDisplayFormat is used as the return value.
</p>
<p>
Use DisplayFormat to read and write the value for the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetDisplayFormat.Result">
<short>Value for the DisplayFormat property</short>
</element>
<!-- function visibility: private -->
<element name="TColumn.GetField">
<short>
Gets the value for the Field property
</short>
<descr>
<p>
<var>GetField</var> is a TField function used to get the value for the Field property. GetField ensures that Field has been assigned, and that FieldName has been set for the class instance. The LinkField method is called to find and store the TField instance used as the return value for the method. The return value is <var><b>Nil</b></var> if a Field with the name in FieldName cannot be found.
</p>
<p>
Use Field to read or write the value in the property.
</p>
</descr>
<seealso>
<link id="TColumn.Field">TColumn.Field</link>
<link id="TColumn.LinkField">TColumn.LinkField</link>
<link id="#fcl.db.TField">TField</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetField.Result">
<short>Field used to access data for the column</short>
</element>
<!-- function visibility: private -->
<element name="TColumn.GetIsDesignColumn">
<short>
Gets the value for the IsDesignColumn property
</short>
<descr>
<p>
<var>GetIsDesignColumn</var> is a Boolean function used to get the value for the IsDesignColumn property. The return value is True when DesignIndex contains a value in the range <var>0..9999</var>.
</p>
<p>
The upper range for DesignIndex is a result of the value assigned in Create. The value <var>10000</var> is used in the property when Grid has not assigned for the collection, or Grid includes csLoading in its ComponentState property.
</p>
<p>
Use IsDesignColumn to read the value for the property.
</p>
</descr>
<seealso>
<link id="TColumn.DesignIndex">TColumn.DesignIndex</link>
<link id="TDBGridColumns">TDBGridColumns</link>
<link id="TDBGrid.Columns">TDBGrid.Columns</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetIsDesignColumn.Result">
<short>Value for the IsDesignColumn property</short>
</element>
<!-- function visibility: private -->
<element name="TColumn.IsDisplayFormatStored">
<short>
Determines the storage specifier for the DisplayFormat property
</short>
<descr>
<p>
<var>IsDisplayFormatStored</var> is a Boolean function used as the storage specifier for the DisplayFormat property. The return value is True if the member variable for the DisplayFormat property is different than the one used for the Field.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.IsDisplayFormatStored.Result">
<short>
True when DisplayFormat is different the one used for the Field
</short>
<descr></descr>
<seealso></seealso>
</element>
<!-- procedure visibility: private -->
<element name="TColumn.SetDisplayFormat">
<short>
Sets the value in the DisplayFormat property
</short>
<descr>
<p>
<var>SetDisplayFormat</var> is a procedure used to set the value in the DisplayFormat property. SetDisplayFormat compares the value stored in the member variable to the new value for the property. If they are different, the new value is stored and a flag is set to indicate that the display format has changed. SetDisplayFormat calls the ColumnChanged method to indicate that the column definition has been updated.
</p>
<p>
No actions are performed in the method when the DisplayFormat has not been changed.
</p>
<p>
Use DisplayFormat to read or write the value for the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: private -->
<element name="TColumn.SetField">
<short>
Sets the value in the Field property
</short>
<descr>
<p>
<var>SetField</var> is a procedure used to set the value in the Field property. SetField compares the new value for the property to the value stored in the member variable. When they are different, the new value is stored in the member variable. If the new value is not Nil, its FieldName is updated as well. SetField calls the ColumnChanged method to indicate that the column definition has been updated.
</p>
<p>
No actions are performed in the method when the new Field value is the same as the value stored in the member variable .
</p>
<p>
Use Field to read or write the value for the property.
</p>
</descr>
<seealso>
<link id="TColumn.Field">TColumn.Field</link>
<link id="TColumn.FieldName">TColumn.FieldName</link>
</seealso>
</element>
<!-- procedure visibility: private -->
<element name="TColumn.SetFieldName">
<short>
Sets the value in the FieldName property
</short>
<descr>
<p>
<var>SetFieldName</var> is a procedure used to set the value in the FieldName property. SetFieldName compares the new value to the value stored in the member variable for the property. No actions are performed in the method when they are the same.
</p>
<p>
SetFieldName stores the new value for the property in its member variable, and calls the LinkField method to find the Field with the specified name. DisplayFormat is updated when a matching Field is located in the dataset for the column.
</p>
</descr>
<seealso>
<link id="TColumn.LinkField">TColumn.LinkField</link>
<link id="TColumn.DisplayFormat">TColumn.DisplayFormat</link>
</seealso>
</element>
<!-- function visibility: protected -->
<element name="TColumn.CreateTitle" link="#lcl.Grids.TGridColumn.CreateTitle">
<short>
Creates the title used for the grid column
</short>
<descr>
<p>
<var>CreateTitle</var> is an overridden TGridColumnTitle function used to create the title used as a fixed caption for the column.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.CreateTitle.Result">
<short>Title for the column</short>
</element>
<!-- function visibility: protected -->
<element name="TColumn.GetDefaultAlignment">
<short>
Gets the default alignment for the Field in the column definition
</short>
<descr>
<p>
<var>GetDefaultAlignment</var> is an overridden TAlignment function that gets the default alignment for the Field in the column definition. GetDefaultAlignment gets the button style used by the default editor for Field. For checkbox and button-style editors, center alignment is used. Otherwise, the Alignment in Field is used. If Field has not been assigned, left alignment is used.
</p>
</descr>
<seealso>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetDefaultAlignment.Result">
<short>Alignment for the Field and/or editor style</short>
</element>
<!-- function visibility: protected -->
<element name="TColumn.GetDefaultDisplayFormat">
<short>
Gets the default display format for the Field in a column
</short>
<descr>
<p>
<var>GetDefaultDisplayFormat</var> is a String function used to get the default display format provided for the Field in a column definition. GetDefaultDisplayFormat uses the Field property to get its DisplayFormat for use as the return value in the method. The return value is a empty string <var>('')</var> when Field has not been assigned for the column definition.
</p>
<p>
GetDefaultDisplayFormat is used in the implementation of the GetDisplayFormat method.
</p>
</descr>
<seealso>
<link id="TColumn.Field">TColumn.Field</link>
<link id="TColumn.GetDisplayFormat">TColumn.GetDisplayFormat</link>
<link id="#fcl.db.TField.DisplayFormat">TField.DisplayFormat</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetDefaultDisplayFormat.Result">
<short>Default display format for the Field in the column</short>
</element>
<!-- function visibility: protected -->
<element name="TColumn.GetDefaultValueChecked">
<short>
Gets the default value for a Checkbox in the Checked state as a String
</short>
<descr>
<p>
<var>GetDefaultValueChecked</var> is an overridden String function used to get the default value used for a Checkbox column in the Checked state. When Field has been assigned for the column, and the data type is ftBoolean, the return value is <var>'TRUE'</var>. If Field has not been assigned, the return value is <var>'1'</var>.
</p>
</descr>
<seealso>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetDefaultValueChecked.Result">
<short>'TRUE' or '1'</short>
</element>
<!-- function visibility: protected -->
<element name="TColumn.GetDefaultValueUnchecked">
<short>
Gets the default String value for a Checkbox in the UnChecked state
</short>
<descr>
<p>
<var>GetDefaultValueUnchecked</var> is an overridden String function used to get the default value used for a Checkbox column in the UnChecked state. When Field has been assigned for the column, and the data type is ftBoolean the return value is <var>'FALSE'</var>. If Field has not been assigned, the return value is <var>'0'</var>.
</p>
</descr>
<seealso>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetDefaultValueUnchecked.Result">
<short>'FALSE' or '0'</short>
</element>
<!-- function visibility: protected -->
<element name="TColumn.GetDefaultVisible" link="#lcl.Grids.TGridColumn.GetDefaultVisible">
<short>
Indicates if the Field for the column is Visible
</short>
<descr>
<p>
<var>GetDefaultVisible</var> is an overridden Boolean function that indicates if the Field for the column is Visible. GetDefaultVisible uses Field to get its Visible property for use as the return value in the method. If Field has not been assigned in the column, the return value is True.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetDefaultVisible.Result">
<short>True when the Field for the column is visible</short>
</element>
<!-- function visibility: protected -->
<element name="TColumn.GetDisplayName">
<short>
Gets the display name for the collection item
</short>
<descr>
<p>
<var>GetDisplayName</var> is an overridden String function used to get the display name for the column. The display name is used at design-time to get the name for the collection item, and at run-time when a dataset for the column has not been assigned or opened.
</p>
<p>
The value in FieldName is used as the return value for the method, when it has been assigned in the column. Otherwise, the inherited GetDisplayName method is called to get the return value.
</p>
<p>
Use FieldName to set the name of the Field used for the column.
</p>
</descr>
<seealso>
<link id="TColumn.FieldName">TColumn.FieldName</link>
<link id="#rtl.Classes.TCollectionItem.GetDisplayName">TCollectionItem.GetDisplayName</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetDisplayName.Result">
<short>Display name for the collection item</short>
</element>
<!-- function visibility: private -->
<element name="TColumn.GetDefaultReadOnly">
<short>
Gets the default value for the ReadOnly property
</short>
<descr>
<p>
<var>GetDefaultReadOnly</var> is an overridden Boolean function which gets the default value for the ReadOnly property. GetDefaultReadOnly combines the ReadOnly values found in both the Grid and the Field for the dataset to derive the value for the method. The return value is True when Grid or Field is not assigned for the column.
</p>
</descr>
<seealso>
<link id="TGridColumn.GetDefaultReadOnly">TGridColumn.GetDefaultReadOnly</link>
<link id="#lcl.Grids.TGrid.ReadOnly">TGrid.ReadOnly</link>
<link id="#rtl.DB.TField.ReadOnly">TField.ReadOnly</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetDefaultReadOnly.Result">
<short>Effective value for the ReadOnly property</short>
</element>
<!-- function visibility: private -->
<element name="TColumn.GetDefaultWidth">
<short>
Gets the effective width for the column
</short>
<descr>
<p>
<var>GetDefaultWidth</var> is an overridden Integer function used to get the effective width for the column. The return value is calculated using the Grid and its Canvas to find the space needed for the Field in the column. When the Grid has Options that include the value dgTitles, Title.Caption and Title.Font are included in the calculation. GetDefaultWidth calls the CalcColumnFieldWidth function to get the canvas width used as the return value.
</p>
<p>
The return value is -1 if the Grid has not been assigned for the column. The return value contains Grid.DefaultColWidth when Field has not been assigned in the column.
</p>
</descr>
<seealso>
<link id="TGridColumn.GetDefaultWidth">TGridColumn.GetDefaultWidth</link>
<link id="CalcColumnFieldWidth">CalcColumnFieldWidth</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetDefaultWidth.Result">
<short>Effective width for the the column</short>
</element>
<!-- function visibility: private -->
<element name="TColumn.GetPickList">
<short>
Gets the values in the pick list for the column
</short>
<descr>
<p>
<var>GetPickList</var> is an overridden TStrings function which gets the values in the pick list for the column. GetPickList calls the inherited method, and provides support for Lookup Fields in the column definition.
</p>
<p>
When Field is assigned and contains a Lookup Field (fkLookup in its FieldKind property), values from the LookupList or the LookupDataset are included in the return value. When LookupDataset is used, the result includes values from the LookupResultField for each of the rows in the dataset.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.TGridColumn.GetPickList">TGridColumn.GetPickList</link>
<link id="#fcl.DB.TField">TField</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.GetPickList.Result">
<short>Values available for the lookup-style column</short>
</element>
<!-- property visibility: protected -->
<element name="TColumn.IsAutomaticColumn">
<short>
Indicates if the column was automatically added at run-time
</short>
<descr>
<p>
<var>IsAutomaticColumn</var> is a read-only Boolean property that indicates if the column was automatically added to the collection at run-time. The value in IsAutomaticColumn is updated when TDBGrid.AddAutomaticColumns and TDBGridColumns.RemoveAutoColumns add or remove items in the collection.
</p>
<p>
Use IsDesignColumn to determine if the column was added at design-time. Use TDBGridColumns.HasAutomaticColumns to determine if any automatic columns are stored in the collection. Use TDBGrid.OptionsExtra to enable or disable automatically columns in a database grid control.
</p>
</descr>
<seealso>
<link id="TColumn.IsDesignColumn">TColumn.IsDesignColumn</link>
<link id="TDBGridColumns">TDBGridColumns</link>
<link id="TDBGrid.Columns">TDBGrid.Columns</link>
<link id="TDBGrid.OptionsExtra">TDBGrid.OptionsExtra</link>
</seealso>
</element>
<!-- property visibility: protected -->
<element name="TColumn.IsDesignColumn">
<short>
Indicates if the column was added at design-time
</short>
<descr>
<p>
<var>IsDesignColumn</var> is a read-only Boolean property which indicates if the column was added at design-time. GetIsDesignColumn is the read access specifier for the IsDesignColumn property.
</p>
<p>
Use IsAutomaticColumn to determine if the column was added at run-time. Use TDBGridColumns.HasDesignColumns to determine if any design-time columns are stored in the collection.
</p>
</descr>
<seealso>
<link id="TColumn.IsAutomaticColumn">TColumn.IsAutomaticColumn</link>
<link id="TDBGridColumns.HasDesignColumns">TDBGridColumns.HasDesignColumns</link>
<link id="TDBGrid.OptionsExtra">TDBGrid.OptionsExtra</link>
</seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TColumn.LinkField">
<short>
Establishes a link between the FieldName and the Field in a Dataset
</short>
<descr>
<p>
<var>LinkField</var> is a procedure used to establish a link between the FieldName in the column and the Field in its Dataset. LinkField requires Grid to be assigned in order to access the DataLink and its Dataset. When Grid is unassigned, the value for Field is <var>Nil</var>. The DataLink in Grid must be Active to access the Fields in the dataset. When DataLink in not Active, the value in Field is <var>Nil</var>.
</p>
<p>
LinkField finds the Field in the linked dataset with the name specified in FieldName. The TField instance is stored in the Field property. LinkField calls the ApplyDisplayFormat method to update the DisplayFormat used for the column.
</p>
<note>
LinkField is called when reading the value for the Field property and it has not already been assigned.
</note>
</descr>
<seealso>
<link id="TColumn.Field">TColumn.Field</link>
<link id="TColumn.DisplayFormat">TColumn.DisplayFormat</link>
<link id="TColumn.ApplyDisplayFormat">TColumn.ApplyDisplayFormat</link>
<link id="TDBGrid.DataLink">TDBGrid.DataLink</link>
</seealso>
</element>
<!-- constructor visibility: public -->
<element name="TColumn.Create">
<short>
Constructor for the <var>TColumn</var> instance
</short>
<descr>
<p>
<var>Create</var> is the constructor for the <var>TColumn</var> instance.
Create calls the inherited <var>Create</var> constructor and sets the
DesignIndex used for the new entry in the
<link id="#rtl.classes.TCollection">TCollection</link>. Create is called by the <link id="#rtl.classes.TCollection.Add">TCollection.Add</link> method and should not be called directly under normal circumstances.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.TGridColumn.Create">TGridColumn.Create</link>
<link id="#rtl.classes.TCollection">TCollection</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TColumn.Create.ACollection">
<short>Collection that owns the collection item</short>
</element>
<!-- procedure visibility: protected -->
<element name="TColumn.Assign">
<short>
Stores properties from a persistent class in the current class instance
</short>
<descr>
<p>
<var>Assign</var> is an overridden procedure which stores properties from Source in the current class instance. Assign calls the inherited Assign method. When Source is a TColumn class instance, the values for the following are stored in the current class instance:
</p>
<ul>
<li>FieldName</li>
<li>DisplayFormat</li>
<li>ValueChecked</li>
<li>ValueUnchecked</li>
</ul>
</descr>
<seealso>
<link id="#rtl.Classes.TPersistent.Assign">TPersistent.Assign</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TColumn.Assign.Source">
<short>Persistent class with values stored in the method</short>
</element>
<!-- function visibility: public -->
<element name="TColumn.IsDefault" link="#lcl.Grids.TGridColumn.IsDefault">
<short>
Indicates if the column uses its default display format
</short>
<descr>
<p>
<var>IsDefault</var> is an overridden Boolean function that indicates if the column uses its default display format. The return value is True when the value in the DisplayFormat property has not been changed. IsDefault calls the inherited method to get the return value for the method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TColumn.IsDefault.Result">
<short>True when DisplayFormat has been changed</short>
</element>
<!-- property visibility: public -->
<element name="TColumn.Field">
<short>
<var>Field </var> in the <var>Dataset</var> associated with this <var>Column</var>
</short>
<descr>
<p>
<var>Field</var> is a <var>TField</var> property that provides access to the content and other attributes for the dataset Field represented by the column. GetField reads the value for the property. SetField writes the value for the property.
</p>
</descr>
<seealso>
<link id="#rtl.db.TField">TField</link>
<link id="TColumn.LinkField">TColumn.LinkField</link>
</seealso>
</element>
<!-- property visibility: public -->
<element name="TColumn.DesignIndex">
<short>
Order for the column in its collection at design-time
</short>
<descr>
<p>
<var>DesignIndex</var> is a read-only Integer property that contains the order for the column in its collection at design-time. The value in DesignIndex is used primarily when TDBGridColumns.ResetColumnsOrder compares and sorts the items in its collection.
</p>
</descr>
<seealso>
<link id="TColumn.Create">TColumn.Create</link>
<link id="TDBGridColumns.ResetColumnsOrder">TDBGridColumns.ResetColumnsOrder</link>
<link id="CompareDesignIndex">CompareDesignIndex</link>
</seealso>
</element>
<!-- property visibility: published -->
<element name="TColumn.DisplayFormat">
<short>The format to be used for display in this column</short>
<descr>
<p>
<var>DisplayFormat</var> is a String property which specifies a format string used for displaying the value of a Field with the name in FieldName. Use of DisplayFormat in TColumn is consistent with its use in TField (and decendants), but can assign a value that overrides the default display format for the Field.
</p>
<p>
<var>GetDisplayFormat</var> is the read access specifier for the property. <var>SetDisplayFormat</var> is the write access specifier for the property. Changing the value in DisplayFormat causes the ColumnChanged method to be called when the column definition has been updated.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TColumn.FieldName">
<short>
Name of the Field with data for the column
</short>
<descr>
<p>
<var>FieldName</var> is a String property which contains the name of the Field used to get data for the column. <var>SetFieldName</var> is the write access specifier for the property. Changing the value in FieldName causes LinkField to be called to find the Field with the specified name. The value in DisplayFormat is also modified when the property was has changed.
</p>
</descr>
<seealso></seealso>
</element>
<!-- TDBGridColumns starts here -->
<!-- object visibility: default -->
<element name="TDbGridColumns">
<short>
Implements a collection for columns in a database grid
</short>
<descr>
<p>
<var>TDBGridColumns</var> is a TGridColumns descendant which implements a collection for columns added to TDBGrid.
</p>
<p>
TDBGridColumns extends the ancestor class to include support for adding and removing automatic columns at run-time. Automatic columns are a feature in TDBGrid that, when enabled, ensures the collection has a column definition for each Field in the linked dataset for its grid control. Methods and Properties are provided to identify columns added at run-time, and to order entries in the collection by their design-time or run-time indices.
</p>
<p>
Items is the default property for the collection. TColumn is the class type used for Items added to the collection.
</p>
<p>
Use the Add method to create a new collection item in the Items property. Use LinkFields to update the association between an item in the collection and the TField used to access its data. Use ResetColumnsOrder to change the order of Items in the collection.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function visibility: private -->
<element name="TDBGridColumns.GetColumn">
<short>
Gets the collection item stored at the specified position
</short>
<descr>
<p>
<var>GetColumn</var> is a TColumn function which gets the column at the specified position in the collection. GetColumn is the read access specifier for the Items property.
</p>
<p>
Use Items to read and write values in the collection.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TDBGridColumns.GetColumn.Result">
<short>Collection item at the specified position</short>
</element>
<!-- argument visibility: default -->
<element name="TDBGridColumns.GetColumn.Index">
<short>Position in the collection</short>
</element>
<!-- procedure visibility: private -->
<element name="TDBGridColumns.SetColumn">
<short>
Stores the collection item at the specified position
</short>
<descr>
<p>
<var>SetColumn</var> is a procedure which stores the column in Value at the specified position in the collection. SetColumn is the write access specifier for the Items property. SetColumn uses the Assign method to store the new Value in the collection.
</p>
<p>
Use Items to read and write values in the collection.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TDBGridColumns.SetColumn.Index">
<short>Position where the collection item is stored </short>
</element>
<!-- argument visibility: default -->
<element name="TDBGridColumns.SetColumn.Value">
<short>Collection item to store at the specified position</short>
</element>
<!-- procedure visibility: protected -->
<element name="TDBGridColumns.Update">
<short>
Redraws the Grid control that owns the column collection
</short>
<descr>
<p>
<var>Update</var> causes the TDBGrid control which owns the column collection to be redrawn. The value in Grid must be assigned, or no actions are performed in the method. In addition, the Grid control will not be updated if component streaming is active (csLoading in its ComponentState). Update calls TDBGrid.LayoutChanged to force the Grid control to be redrawn.
</p>
</descr>
<seealso>
<link id="#rtl.Classes.TCollection.Update">TCollection.Update</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TDBGridColumns.Update.Item">
<short>Collection item triggering the update</short>
</element>
<!-- function visibility: protected -->
<element name="TDBGridColumns.ColumnFromField">
<short>
<var>ColumnFromField</var> returns the collection item for the specified Field
</short>
<descr>
<p>
<var>ColumnFromField</var> returns the collection item for the specified Field. The return value is <var>Nil</var> when Field has not been assigned.
</p>
<p>
ColumnFromField iterates over the Items in the collection to locate the specified Field. The return value is <var>Nil</var> when Field cannot be located in the Items for the collection.
</p>
<p>
ColumnFromField is used in the TDBGrid.AddAutomaticColumns method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TDBGridColumns.ColumnFromField.Result">
<short>Collection item for the specified Field</short>
</element>
<!-- argument visibility: default -->
<element name="TDBGridColumns.ColumnFromField.Field">
<short>Field to locate in the collection</short>
</element>
<!-- function visibility: public -->
<element name="TDBGridColumns.Add">
<short>
<var>Add</var> creates and stores a new item in the collection
</short>
<descr>
<p>
<var>Add</var> creates and stores a new TColumn instance in the collection.
</p>
<p>
Add uses the Grid property (and the value in its GridStatus property) to determine whether the column is being explicitly added to the collection or added as a result of the automatic columns option in the grid. If the Grid contains the value gsAddingAutoColumns in its GridStatus property, existing automatic columns are left in the collection. Otherwise, RemoveAutoColumns is called prior to creating and storing the new TColumn instance.
</p>
<p>
Add calls the inherited Add method to create and store the new TColumn instance.
</p>
</descr>
<seealso>
<link id="#rtl.Classes.TCollection.Add">TCollection.Add</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TDBGridColumns.Add.Result">
<short>TColumn added to the collection</short>
</element>
<!-- procedure visibility: public -->
<element name="TDBGridColumns.LinkFields">
<short>
Associates column items with the corresponding Fields in the Dataset
</short>
<descr>
<p>
<var>LinkFields</var> is a procedure which associates column items to the corresponding Fields in the Dataset for the Grid. LinkFields uses Grid to call its BeginLayout and EndLayout methods prior to and immediately after linking the Items in the collection to fields in the Dataset. This forces the Grid control to be updated when the method has completed. LinkFields calls the TColumn.LinkField method for each of the Items in the collection.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGridColumns.Items">
<short>
<var>Items</var> provides indexed access to columns added to the collection
</short>
<descr>
<p>
<var>Items</var> is a TColumn property that provides indexed access to columns in the collection by their ordinal position (in the range <var>0..Count-1</var>). Read and write access to columns in the Items property are cast to the TColumn class type used in the collection. Write access calls the Assign method in the TColumn instance stored at the specified position.
</p>
<p>
Items is the default property for the collection.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TDBGridColumns.Items.Index">
<short>Position for the collection item</short>
</element>
<!-- function visibility: protected -->
<element name="TDBGridColumns.HasAutomaticColumns">
<short>
<var>HasAutomaticColumns</var> indicates if any items in the collection are an automatic column
</short>
<descr>
<p>
<var>HasAutomaticColumns</var> is a Boolean function that indicates if any items in the collection are an automatic column added at run-time. Automatic columns are a feature in TDBGrid enabled by adding the appropriate value to its OptionsExtra property. HasAutomaticColumns returns True if a TColumn instance in the Items property has its IsAutomaticColumn property set.
</p>
</descr>
<seealso>
<link id="TDBGrid.OptionsExtra">TDBGrid.OptionsExtra</link>
<link id="TDBGridColumns.RemoveAutoColumns">TDBGridColumns.RemoveAutoColumns</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TDBGridColumns.HasAutomaticColumns.Result">
<short>True when automatic columns are stored in the collection</short>
</element>
<!-- function visibility: protected -->
<element name="TDBGridColumns.HasDesignColumns">
<short>
<var>HasDesignColumns</var> indicates if the collection contains any items explicitly added at design-time
</short>
<descr>
<p>
<var>HasDesignColumns</var> is a Boolean function that indicates if the collection contains any items explicitly added at design-time. HasDesignColumns returns True if Items contains a TColumn instance with its IsDesignColumn property set.
</p>
</descr>
<seealso>
<link id="TDBGridColumns.Items">TDBGridColumns.Items</link>
<link id="TColumn.IsDesignColumn">TColumn.IsDesignColumn</link>
<link id="TColumn.ResetColumnsOrder">TColumn.ResetColumnsOrder</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TDBGridColumns.HasDesignColumns.Result">
<short>True an item has its IsDesignColumn property set</short>
</element>
<!-- procedure visibility: protected -->
<element name="TDBGridColumns.RemoveAutoColumns">
<short>
<var>RemoveAutoColumns</var> removes automatic columns in the collection
</short>
<descr>
<p>
<var>RemoveAutoColumns</var> is a procedure used to remove any automatic columns in the collection. RemoveAutoColumns uses HasAutomaticColumns to determine if any action is required.
</p>
<p>
When HasAutomaticColumns returns True the Grid updates its GridStatus to include the value gsRemovingAutoColumns. RemoveAutoColumns calls the Delete method for any column having its IsAutomaticColumn property set to True. gsRemovingAutoColumns is removed from the GridStatus property in the Grid prior to exiting from the method.
</p>
<p>
Applications do not normally call the RemoveAutoColumns method. Use TDBGrid.OptionsExtra to disable the automatic columns feature in the grid control.
</p>
</descr>
<seealso>
<link id="TDBGrid.GridStatus">TDBGrid.GridStatus</link>
<link id="TDBGrid.OptionsExtra">TDBGrid.OptionsExtra</link>
</seealso>
</element>
<!-- procedure visibility: public -->
<element name="TDBGridColumns.ResetColumnsOrder">
<short>
<var>ResetColumnsOrder</var> arranges columns in the collection to the specified order
</short>
<descr>
<p>
<var>ResetColumnsOrder</var> is a procedure used to arrange columns in the collection to the order specified in the ColumnOrder argument. ColumnOrder can contain the following values:
</p>
<dl>
<dt>coDesignOrder</dt>
<dd>
TColumn.DesignIndex (when available) is used to order collection items.
</dd>
<dt>coFieldIndex</dt>
<dd>
The index for the TColumn.Field (when available) is used to order collection items.
</dd>
</dl>
<p>
Otherwise, the index of the collection item is unchanged.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TDBGridColumns.ResetColumnsOrder.ColumnOrder">
<short>Sort order for columns in the collection</short>
</element>
<!-- TCustomDBGrid starts here -->
<!-- object visibility: default -->
<element name="TCustomDBGrid">
<short>
<var>TCustomDBGrid </var> is the base class for <var>TDBGrid</var>
</short>
<descr>
<p>
<var>TCustomDBGrid</var> is a <var>TCustomGrid</var> descendant and the base class for <var>TDBGrid</var>. TCustomDBGrid adds capabilities needed to implement a database-aware grid control. One key feature is the TComponentDataLink in DataLink used to coordinate access and event handlers between the grid control and its linked dataset. Another key feature is the use of the Options and OptionsExtra properties to enable/disable features or behaviors in the grid control.
</p>
<p>
TCustomDBGrid overrides certain features from the ancestor class to provide consistent use with Fields, Field kinds, and values in TDataset.
</p>
<p>
Applications should use the TDBGrid descendant which sets the scope of properties, methods, and event handlers to public or published.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.HowToUseGrids">HowToUseGrids</link>
<link id="#lcl.DBCtrls.HowToUseDataAwareControls">HowToUseDataAwareControls</link>
</seealso>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.GetCurrentField">
<short>
Gets the value in the SelectedField property
</short>
<descr>
<p>
<var>GetCurrentField</var> is a TField function used to get the value in the SelectedField property. GetCurrentField is the read access specifier for the SelectedField property. GetCurrentField calls GetFieldFromGridColumn to get the TField instance used as the value for the property.
</p>
<p>
Use SelectedField to read and write value for the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetCurrentField.Result">
<short>Value for the SelectedField property</short>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.GetDataSource">
<short>
Gets the value for the DataSource property
</short>
<descr>
<p>
<var>GetDataSource</var> is a TDataSource function used to get the value for the DataSource property. GetDataSource is the read access specifier for the DataSource property. GetDataSource gets the DataSource property stored in DataLink as the return value for the method.
</p>
<p>
Use DataSource to read or write values in the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetDataSource.Result">
<short>Value for the DataSource property</short>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.GetRecordCount">
<short>
Gets the number of records in the linked dataset
</short>
<descr>
<p>
<var>GetRecordCount</var> is an Integer function used to get the number of records in the linked dataset. GetRecordCount uses the DataLink for the grid to get the RecordCount in its DataSet property. The record count is used as the return value for the method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetRecordCount.Result">
<short>Number of records in the linked dataset</short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.OnRecordChanged">
<short>
Default implementation for the event handler in TComponentDataLink
</short>
<descr>
<p>
<var>OnRecordChanged</var> is a procedure which provides a default implementation for the OnRecordChanged event handler in TComponentDataLink. OnRecordChanged ensures that the grid control and the linked dataset are synchronized when refreshing the active record, selecting the current column, and re-enabling the edit control when EditMode is active.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnRecordChanged.Field">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.OnDatasetChanged">
<short>
Default implementation for the event handler in TComponentDataLink
</short>
<descr>
<p>
<var>OnDatasetChanged</var> is a procedure which provides a default implementation for the OnDatasetChanged event handler in TComponentDataLink.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnDatasetChanged.aDataset">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.OnDatasetOpen">
<short>
Implementation for the event handler in TComponentDataLink
</short>
<descr>
<p>
<var>OnDatasetOpen</var> provides a default implementation for the event handler in TComponentDataLink.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnDatasetOpen.aDataset">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.OnDatasetClose">
<short>
Implementation for the event handler in TComponentDataLink
</short>
<descr>
<var>OnDatasetClose</var> provides a default implementation for the event handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnDatasetClose.aDataset">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.OnEditingChanged">
<short>
Implementation for the event handler in TComponentDataLink
</short>
<descr>
<var>OnEditingChanged</var> provides a default implementation for the event handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnEditingChanged.aDataset">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.OnInvalidDataset">
<short>
Implementation for the event handler in TComponentDataLink
</short>
<descr>
<var>OnInvalidDataSet</var> provides a default implementation for the event handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnInvalidDataset.aDataset">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.OnInvalidDataSource">
<short>
Implementation for the event handler in TComponentDataLink
</short>
<descr>
<var>OnInvalidDataSourcet</var> provides a default implementation for the event handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnInvalidDataSource.ADataset">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.OnLayoutChanged">
<short>
Implementation for the event handler in TComponentDataLink
</short>
<descr>
<var>OnLayoutChanged</var> provides a default implementation for the event handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnLayoutChanged.ADataset">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.OnNewDataset">
<short>
Implementation for the event handler in TComponentDataLink
</short>
<descr>
<var>OnNewDataset</var> provides a default implementation for the event handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnNewdataset.ADataset">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.OnDatasetScrolled">
<short>
Implementation for the event handler in TComponentDataLink
</short>
<descr>
<var>OnDatasetScrolled</var> provides a default implementation for the event handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnDatasetScrolled.ADataset">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnDatasetScrolled.Distance">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.OnUpdateData">
<short>
Implementation for the event handler in TComponentDataLink
</short>
<descr>
<var>OnUpdateData</var> provides a default implementation for the event handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnUpdateData.ADataset">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.ReadColumns">
<short></short>
<descr>
<remark>
Not used in the current implementation.
</remark>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.ReadColumns.Reader">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.SetColumns">
<short></short>
<descr>
<remark>
Not used in the current implementation.
</remark>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.SetColumns.AValue">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.SetCurrentField">
<short>
</short>
<descr>
<p>
<var>SetCurrentField</var> is a procedure used to set the value in the SelectedField property. SetCurrentField is the write access specifier for the SelectedField property. SetCurrentField calls GetGridColumnFromField to ensure that the Field in AValue becomes the current column in the control. No actions are performed in the method when AValue contains the same value as the SelectedField property.
</p>
<p>
Use SelectedField to read or write the value for the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.SetCurrentField.AValue">
<short>Field to select in the method</short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.SetDataSource">
<short>
Sets the value in the DataSource property
</short>
<descr>
<p>
<var>SetDataSource</var> is a procedure used to set the value in the DataSource property. SetDataSource is the write access specifier for the DataSource property. SetDataSource stores the value in AValue in the DataSource property for DataLink, refreshes the column widths for the control, and calls UpdateActive.
</p>
<p>
Use DataSource to read or write the value in the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.SetDataSource.AValue">
<short>New data source for the property value</short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.SetOptions">
<short>
Sets the values in the Options property
</short>
<descr>
<p>
<var>SetOptions</var> is a procedure used to set the values in the Options property. SetOptions is the write access specifier for the Options property. SetOptions causes other aspects of the grid control to be updated to reflect changes in the property value. ChangedOptions is updated to reflect the enumeration values added or removed in the request. Some enumeration values force other features or behaviors to be disabled. For instance: row selection. Enabling row selection forces the options for editing, always displaying the editor, and row highlighting to be removed from the Options property. Finally, removing multi-selection from the Options property forces the SelectedRows and KeyBookmark properties to be cleared.
</p>
<p>
AValue is a TDBGridOptions argument that specifies features or behaviors that will be enabled or disabled in the grid control. Please note that these options are different than the TGridOption values used in the ancestor class.
</p>
<p>
As a result, SetOptions must translate any TDBGridOption values to their TGridOption equivalents and store them in the inherited Options property.
</p>
<p>
Options contains the following default values when the control is created:
</p>
<ul>
<li>dgColumnResize</li>
<li>dgColumnMove</li>
<li>dgTitles</li>
<li>dgIndicator</li>
<li>dgRowLines</li>
<li>dgColLines</li>
<li>dgConfirmDelete</li>
<li>dgCancelOnExit </li>
<li>dgTabs</li>
<li>dgEditing</li>
<li>dgAlwaysShowSelection</li>
</ul>
<p>
See TDBGridOption for more information about values in the enumeration.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.SetOptions.AValue">
<short>New values for the Options property</short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.UpdateBufferCount">
<short>
Sets the number of records buffered for the linked dataset
</short>
<descr>
<p>
<var>UpdateBufferCount</var> is a procedure used to set the number of records buffered for the linked dataset. UpdateBufferCount requires that DataLink be marked as Active to set the buffer count. If DataLink.Active contains False, no actions are performed in the method.
</p>
<p>
UpdateBufferCount calls GetBufferCount to determine the number of rows that can be displayed in the control with the DefaultRowHeight. When Options includes the value dgTitles, the buffer count is decreased by 1 to account for the fixed title row. UpdateBufferCount stores the new value in the BufferCount property in DataLink.
</p>
<p>
UpdateBufferCount is called from the UpdateGridCounts method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.UpdateData">
<short>
<var>UpdateData</var> is used to perform pending updates for the selected cell.
</short>
<descr>
<p>
<var>UpdateData</var> is a virtual procedure used to perform pending updates for the selected cell to its Field in the grid Dataset. No action is performed if the selected cell has not been modified (or cannot be modified) or the Dataset is not in edit mode.
</p>
<p>
UpdateData ensures that the appropriate method is used to update Field data based on the TField.FieldKind for the modified column. Special handling is provided for lookup Fields to check the cached lookup list or to retrieve the lookup result using its key Fields.
</p>
<p>
UpdateData calls the EditingColumn method to disable the editing flag for the column prior to exit.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.GetColumnCount">
<short>
Gets the number of visible columns or Fields in the grid
</short>
<descr>
<p>
<var>GetColumnCount</var> is an Integer function used to get the number of visible columns or Fields for the grid control. GetColumnCount uses the Columns collection (when its has been Enabled) to get the value in VisibleCount. When Columns is not Enabled, and OptionsExtra has dgeAutoColumns enabled, the linked dataset is used to determine the number of Fields with their Visible flag set. The Dataset cannot be examined if the DataLink is not marked as Active.
</p>
<p>
GetColumnCount is called from the UpdateGridCounts method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetColumnCount.Result">
<short>Number of visible Fields or columns in the grid</short>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.DefaultFieldColWidth">
<short>
Gets the default column width for the specified Field
</short>
<descr>
<p>
<var>DefaultFieldColWidth</var> is an Integer function used to get the default column width for the specified Field. When the specified Field contains Nil, the value from DefaultColWidth is used. Otherwise, the DisplayWidth property in the TField instance is used to get the Canvas.TextWidth for the DisplayName in the Field.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.DefaultFieldColWidth.Result">
<short>Default column width for the field</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DefaultFieldColWidth.F">
<short>Field to examine in the method</short>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.GetDsFieldFromGridColumn">
<short>
<var>GetDsFieldFromGridColumn</var> returns the identity of the dataset Field corresponding to the nominated grid column
</short>
<descr>
<p>
<var>GetDsFieldFromGridColumn</var> returns the identity of the dataset Field corresponding to the nominated grid column
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetDsFieldFromGridColumn.Result">
<short>Field to use for the specified column</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetDsFieldFromGridColumn.Column">
<short>Column with the field to locate in the method</short>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.GetFieldFromGridColumn">
<short>
<var>GetFieldFromGridColumn</var> obtain the Field either from a Db column or directly from dataset Fields
</short>
<descr>
<p>
<var>GetFieldFromGridColumn</var> obtain the Field either from a Db column or directly from dataset Fields.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetFieldFromGridColumn.Result">
<short>Field for the specified column</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetFieldFromGridColumn.Column">
<short>Column to locate in the method</short>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.GetGridColumnFromField">
<short>
<var>GetGridColumnFromField</var> - gets the corresponding grid column for the given Field
</short>
<descr>
<p>
<var>GetGridColumnFromField</var> - gets the corresponding grid column for the given Field.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetGridColumnFromField.Result">
<short>Column for the specified field</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetGridColumnFromField.F">
<short>Field to locate in the grid columns</short>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.FieldIndexFromGridColumn">
<short>
<var>FieldIndexFromGridColumn</var> returns the index for the database Field
corresponding to the stated grid column
</short>
<descr>
<p>
<var>FieldIndexFromGridColumn</var> returns the index for the database Field
corresponding to the stated grid column.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.FieldIndexFromGridColumn.Result">
<short>Position of the field for the specified column</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.FieldIndexFromGridColumn.Column">
<short>Column to locate in the fields for the control</short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.UpdateGridColumnSizes">
<short>
Updates sizes for automatically sized columns in the grid
</short>
<descr>
<p>
<var>UpdateGridColumnSizes</var> is a procedure used to update the sizes for automatically sized columns in the grid control. UpdateGridColumnSizes requires DefaultColWidths to be in use for the grid. No actions are performed in the method when DefaultColWidths contains False.
</p>
<p>
UpdateGridColumnSizes also requires the Options property to include the value dgAutoSizeColumns which enables the auto-sized columns feature. No actions are performed if the feature has not been enable for the grid control.
</p>
<p>
UpdateGridColumnSizes calls the UpdateAutoSizeColumns method to calculate the widths for the auto-sized columns.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.UpdateScrollbarRange">
<short>
</short>
<descr>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.DoLayoutChanged">
<short>
Update the grid and its scrollbars when its layout has changed
</short>
<descr>
<p>
<var>DoLayoutChanged</var> is a procedure used to update the grid and its scrollbars when the layout for the control has changed. No actions are performed in the method when the control is freed (contains csDestroying in its ComponentState).
</p>
<p>
DoLayoutChanged calls BeginUpdate to signal changes to the control, and UpdateGridCounts to determine the number of rows for the update. When UpdateGridCounts returns 0, the EmptyGrid method is called to clear the grid control. DoLayoutChanged calls EndUpdate to allow pending changes to be applied to the control. DoLayoutChanged calls UpdateScrollbarRange to update scrollbars (when used) for the control.
</p>
<p>
DoLayoutChanged is called from the EndLayout method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.WriteColumns">
<short></short>
<descr>
<remark>
Not used in the current implementation.
</remark>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.WriteColumns.Writer">
<short></short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.RestoreEditor">
<short>
Re-enables the editor control after scrollbar messages
</short>
<descr>
<p>
<var>RestoreEditor</var> is a procedure used to re-enable the editor control in the grid after processing scrollbar messages. RestoreEditor is used when EditorMode contains True. No actions are performed in the method when EditorMode contains False. RestoreEditor toggles the value in EditorMode to force the editor for the SelectCell to be refreshed and redrawn.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.ISEOF">
<short>
Indicates if the linked dataset is positioned at the end-of-file
</short>
<descr>
<p>
<var>ISEOF</var> is a Boolean function used to indicate if the linked dataset is positioned at the end-of-file. ISEOF uses the DataLink for the control to access its Active and Dataset properties. DataLink must be Active (contains True) to access its Dataset. The return value is True when the TDataset.EOF method returns True. The return value is False when DataLink is not Active, or TDataset.EOF returns False.
</p>
<p>
ISEOF is used in the KeyDown and MouseDown methods.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.ISEOF.Result">
<short>EOF state for the linked dataset</short>
</element>
<!-- procedure visibility: protected -->
<element
name="TCustomDBGrid.BeforeMoveSelection"
link="#lcl.Grids.TCustomGrid.BeforeMoveSelection">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.BeforeMoveSelection.DCol">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.BeforeMoveSelection.DRow">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.BeginLayout">
<short>
<var>BeginLayout</var> starts producing layout changes for the grid control
</short>
<descr>
<p>
<var>BeginLayout</var> is a procedure which starts producing layout changes for the grid control. BeginLayout is used along with EndLayout to minimize the number of times layout changed notification events are triggered by the control. Layout changes occur when the control enables certain values in its Options property, when AutoAdjustColumn is called, and when the Columns collection links to Fields in the associated dataset.
</p>
<p>
BeginLayout increments the LayoutChangedCount variable that tracks the number of times the method is called for the control. <var>EndLayout</var> decrements that counter, and when it reaches 0 (zero), the DoLayoutChanged method is called.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.CellClick">
<short>
<var>CellClick</var> calls the <var>OnCellClick</var> event handler if it is
assigned for this particular cell
</short>
<descr>
<p>
<var>CellClick</var> calls the <var>OnCellClick</var> event handler if it is
assigned for this particular cell.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.CellClick.aCol">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.CellClick.aRow">
<short></short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.CheckDisplayMemo">
<short>
Indicates if the field is a Memo that needs to be displayed in the grid
</short>
<descr>
<p>
<var>CheckDisplayMemo</var> is a Boolean function used to determine if the specified field is a Memo field that needs to be displayed in the grid control. The return value is True when the specified field has the value ftMemo in its DataType property, and the Options property has enabled the dgDisplayMemoText feature.
</p>
<p>
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibiity: default -->
<element name="TCustomDBGrid.CheckDisplayMemo.aField">
<short></short>
</element>
<!-- function result visibiity: default -->
<element name="TCustomDBGrid.CheckDisplayMemo.Result">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.ChangeBounds" link="#lcl.Controls.TControl.ChangeBounds">
<short>
</short>
<descr>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.ChangeBounds.ALeft">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.ChangeBounds.ATop">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.ChangeBounds.AWidth">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.ChangeBounds.AHeight">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.ColRowMoved" link="#lcl.Grids.TCustomGrid.ColRowMoved">
<short>
Signals event handlers when a row or a column is moved in the grid control
</short>
<descr>
<p>
<var>ColRowMoved</var> is an overridden procedure used to signal event handlers when a row or a column is moved in the grid control. When IsColumn contains False, the OnRowMoved event handler is signalled (when assigned). When IsColumn contains True, the OnColumnMoved event handler is signalled (when assigned) if Columns have not been Enabled in the grid control. If Columns have been Enabled, the inherited ColRowMoved method is called.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.ColRowMoved.IsColumn">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.ColRowMoved.FromIndex">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.ColRowMoved.ToIndex">
<short></short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.CreateColumns" link="#lcl.Grids.TCustomGrid.CreateColumns">
<short>
Creates the Columns collection for the grid control
</short>
<descr>
<p>
<var>CreateColumns</var> is an overridden TGridColumns function used to create the Columns collection for the grid control. In TDBGrid, the Columns collection is implemented using the TDBGridColumns class type (a descendant of TGridColumns). CreateColumns creates an instance of TDBGridColumns which is used as the return value for the method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.CreateColumns.Result">
<short>Columns collection for the grid control</short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.CreateWnd">
<short>
<var>CreateWnd</var> - creates the window adjusts its layout and adds scrollbars when needed
</short>
<descr></descr>
<seealso>
<link id="#lcl.Controls.TWinControl.CreateWnd">TWinControl.CreateWnd</link>
</seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.DefineProperties" link="#rtl.Classes.TComponent.DefineProperties">
<descr>
<remark>
Provides an empty implementation that avoids calling the inherited DefineProperties method. TCustomGrid defines ColWidths, RowHeights and Cells properties which do not use facilities available in the data-aware grid control.
</remark>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DefineProperties.Filer">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.DefaultDrawCell">
<short>
Default method used to drawing a cell at the specified location
</short>
<descr>
<p>
<var>DefaultDrawCell</var> is a procedure that provides the default method for drawing a cell at the specified location using different cell types. DefaultDrawCell draws the background for the cell with the specified drawing state. For a cell which appears in a fixed row or column, the text for the cell is also drawn.
</p>
<p>
When the DataSet for the grid control has rows, the Field used for the specified column is retrieved and the cell is drawn in the manner needed for its column editor style. For checkbox columns, the DrawCheckBoxBitmaps is called. For columns with a button-style editor, the DrawButtonCell method is used. For Fields with a ftMemo data type, the CheckDisplayMemo method is called to determine whether the content in the memo or the DIsplayText for the column definition is drawn. Finally, the DrawCellText method is called to draw the specified cell using its state and value.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DefaultDrawCell.aCol">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DefaultDrawCell.aRow">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DefaultDrawCell.aRect">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DefaultDrawCell.aState">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.DoExit">
<short>
<var>DoExit</var> closes the editor and the datalink for the control
</short>
<descr>
<p>
<var>DoExit</var> is an overridden procedure in TCustomDBGrid used to close the editor and the datalink for the control. A valid dataset must be assigned in the DataLink property and inserts must be cancellable for the dataset. The Options property must include the dgCancelOnExit enumeration value for the grid. If any of these conditions are not met, no actions are performed in the method on either the dataset or the Field editor.
</p>
<p>
DoExit calls the inherited method to perform any actions implemented in the ancestor class.
</p>
</descr>
<seealso>
<link id="#lcl.Controls.TWinControl.DoExit">TWinControl.DoExit</link>
</seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.DoOnChangeBounds">
<short>
<var>DoOnChangeBounds</var> - calls inherited
<var>DoOnChangeBounds</var> adjusts layout if required
</short>
<descr></descr>
<seealso>
<link id="#lcl.Controls.TControl.DoOnChangeBounds">TControl.DoOnChangeBounds</link>
</seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.DrawFocusRect" link="#lcl.Grids.TCustomGrid.DrawFocusRect">
<short>
Draws the current selection in the grid in a focused state
</short>
<descr>
<p>
DrawFocusRect is an overridden procedure used to draw the current selection in the grid in a focused state.
</p>
<p>
The grid control must have focus before the current selection can be drawn. In
addition the DataLink for the control must refer to an active dataset.
DrawFocusRect uses the Options property to ensure that dgAlwaysShowSelection
has been included for the control. Finally DefaultDrawing must be enabled to
allow drawing of the focus rectangle using the rubberband style on the Canvas
for the control.
</p>
<p>
If any of the previous conditions are not met, no actions are performed in the method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawFocusRect.aCol">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawFocusRect.aRow">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawFocusRect.ARect">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.DrawRow" link="#lcl.Grids.TCustomGrid.DrawRow">
<short>
</short>
<descr>
<p>
DrawRow is an overridden procedure used to draw the specified row number in the grid control.
</p>
<p>
ARow contains the row number to be drawn and refers to an ordinal position relative to the FixedRows for the control. When ARows contains a value that would be in the FixedRows the state flags that track drawing an active record or multi-selection are reset. DrawRow also requires that DataLink refer to an active dataset. No actions are performed in the method if these conditions are not satisfied.
</p>
<p>
DrawRow sets the active record in DataLink for selected rows in the control and updates the DrawingActiveRecord and DrawingMultiSelRecord flags as needed. The Options property must include the value dgMultiSelect to enable drawing of multiple selections in the control.
</p>
<p>
DrawRow calls the inherited method to perform any actions implemented in the ancestor class.
</p>
</descr>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawCell">
<short>
DrawCell renders the specified grid cell in the supplied drawing state
</short>
<descr>
<p>
DrawCell is used to render a cell at the specified coordinates with the specified drawing state.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawCell.aCol">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawCell.aRow">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawCell.aRect">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawCell.aState">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.EditingColumn">
<short>
<var>EditingColumn</var> sets or resets the column being edited in the control
</short>
<descr>
<p>
<var>EditingColumn</var> is a procedure used to set or reset the column being edited in the control .
</p>
<p>
aCol indicates the ordinal column number and is stored internally for use in other methods of the control. Ok indicates that editing is active when set and causes the DataLink to set its Modified flag to true. When Ok contains False the internal column number is reset to its default value indicating that no column is currently being edited.
</p>
<p>
EditingColumn is used in the implementation of other methods in the grid control such as UpdateData, EditorCancelEditing, EditorIsReadOnly, and DoExit.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.UpdateData">TCustomDBGrid.UpdateData</link>
<link id="TCustomDBGrid.EditorCancelEditing">TCustomDBGrid.EditorCancelEditing</link>
<link id="TCustomDBGrid.EditorIsReadOnly">TCustomDBGrid.EditorIsReadOnly</link>
<link id="TCustomDBGrid.DoExit">TCustomDBGrid.DoExit</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.EditingColumn.aCol">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.EditingColumn.Ok">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.EditorCancelEditing">
<short>
<var>EditorCancelEditing</var> cancels pending changes and disables the editor
</short>
<descr>
<p>
<var>EditorCancelEditing</var> is a procedure used to cancel pending changes
and to halt the editing process.
</p>
<p>
EditorCancelEditing calls the EditingColumn method to disable the editor in
the currently selected cell for the control. The EditorMode property is
cleared when set, but is restored if the Options property includes the value
dgAlwaysShowEditor.
</p>
<p>
EditorCancelEditing is used in the implementation of methods like
DoOperation MoveSel and MouseDown.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.EditorDoGetValue">
<short>
<var>EditorDoGetValue</var> gets the value used in the editor for the control
</short>
<descr>
<p>
<var>EditorDoGetValue</var> is an overridden procedure used to get the value used in the editor for the control. EditorDoGetValue calls the inherited EditorDoGetValue method. UpdateData is called to retrieve the value for the editor from its column in the underlying dataset.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.TCustomGrid.EditorDoGetValue">TCustomGrid.EditorDoGetValue</link>
</seealso>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.EditorCanAcceptKey">
<short>
<var>EditorCanAcceptKey</var> determines if the specified character can be applied to the Field for the editor
</short>
<descr>
<p>
<var>EditorCanAcceptKey</var> is an overridden Boolean function
which determines if the cell editor can accept the character specified in <var>ch</var>. EditorCanAcceptKey requires that the linked dataset be active to access the SelectedField for the control. The Field cannot be an AutoIncrement, Lookup, Calculated, or Blob Field type. The return value is False if any of these conditions are not satisfied.
</p>
<p>
EditorCanAcceptKey calls the IsValidChar routine to determine if the UTF8-encoded value in ch can be applied to the dataset for the control.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.TCustomGrid.EditorCanAcceptKey">TCustomGrid.EditorCanAcceptKey
</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.EditorCanAcceptKey.ch">
<short>Key to examine in the method</short>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.EditorCanAcceptKey.Result">
<short>True when the character can be applied to the field</short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.EditorIsReadOnly" link="#lcl.Grids.TCustomGrid.EditorIsReadOnly">
<short>
<var>EditorIsReadOnly</var> determines if the editor can be enabled for the selected cell in the control
</short>
<descr>
<p>
<var>EditorIsReadOnly</var> is a Boolean function used to determine if the
editor can be enabled for the selected cell in the control.
</p>
<p>
EditorIsReadOnly calls the inherited method to ensure that requirements from the ancestor class are respected. If the ancestor class returns True no actions are performed in the method.
</p>
<p>
EditorIsReadOnly locates the TField used to store data for the selected cell, and calls its CanModify method to determine if the Field can be modified. Additional logic is applied for lookup Fields; the TField.KeyFields for the Field are also examined to determine if any of them are marked as read-only.
</p>
<p>
EditorIsReadOnly ensures the dataset in DataLink is in edit mode. The GridStatus property is updated to include gsStartEditing prior to changing the dataset state, and removed from GridStatus after the dataset state has changed.
</p>
<p>
EditorIsReadOnly calls the EditingColumn method to synchronize the cell editor state to the value returned by the method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.EditorIsReadOnly.Result">
<short>True when an editor cannot modify the select cell</short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.EndLayout">
<short>
<var>EndLayout</var> finishes layout changes for the control
</short>
<descr>
<p>
<var>EndLayout</var> is a procedure used along with BeginLayout to minimize the number of times layout changed notification events are triggered by the control. Layout changes occur when the control enables certain values in its Options property when AutoAdjustColumn is called and when the Columns collection links to Fields in the associated dataset.
</p>
<p>
The grid maintains an internal counter that tracks the number of times BeginLayout has been called to start a layout change for the control. EndLayout decrements that counter, and when it reaches 0 (zero), the DoLayoutChanged method is called.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.BeginLayout">TCustomDBGrid.BeginLayout</link>
<link id="TCustomDBGrid.DoLayoutChanged">TCustomDBGrid.DoLayoutChanged</link>
<link id="TCustomDBGrid.LayoutChanged">TCustomDBGrid.LayoutChanged</link>
<link id="TCustomDBGrid.Options">TCustomDBGrid.Options</link>
<link id="TCustomDBGrid.AutoAdjustColumn">TCustomDBGrid.AutoAdjustColumn</link>
<link id="TDBGridColumns.LinkFields">TDBGridColumns.LinkFields</link>
<link id="TDBGridColumns.Update">TDBGridColumns.Update</link>
</seealso>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.GetEditMask">
<short>
<var>GetEditMask</var> gets the EditMask for the Field at the specified Row and Column
</short>
<descr>
<p>
<var>GetEditMask</var> is an overridden String function used to get the EditMask for the TField that reads and writes data for specified Row and Column.
</p>
<p>
The linked dataset for the grid control must be active to access the Field definition at the specified column number. GetEditMask calls the GetFieldFromGridColumn method to get the TField instance with the EditMask for the column.
</p>
<p>
The return value can contain an empty string ('') is the dataset is not active, or a Field cannot be located for the specified column, or the EditMask has not been assigned in the Field definition.
</p>
<p>
GetEditMask signals the OnFieldEditMask event handler when it has been assigned for the control. Use OnFieldEditMask to return a user-specified value for the EditMask.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.TCustomGrid.GetEditMask">TCustomGrid.GetEditMask</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetEditMask.Result">
<short>Edit mask for the specified cell</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetEditMask.aCol">
<short>Column in the grid</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetEditMask.aRow">
<short>Row in the grid</short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.GetEditText">
<short>
<var>GetEditText</var> gets the Text value for the specified Field
</short>
<descr>
<p>
<var>GetEditText</var> is an overridden String function used to get the Text value for the Field at the specified Row and Column.
</p>
<p>
GetEditText requires that the linked dataset for the control be active to access its Field definitions. GetEditText calls the GetFieldFromGridColumn method to get the TField instance that provides the textual representation of the value for the Field. GetEditText calls the CheckDisplayMemo method to determine if a Field with the ftMemo data type displays its content or the string literal in its Text property <var>'(Memo)'</var>.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetEditText.Result">
<short>Text value displayed for the specified cell</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetEditText.aCol">
<short>Column in the grid`</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetEditText.aRow">
<short>Row in the grid</short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.GridCanModify">
<short>
<var>GridCanModify</var> indicates if the DataLink is active and allows editing
</short>
<descr>
<p>
<var>GridCanModify</var> indicates if the DataLink is active, and allows editing.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GridCanModify.Result">
<short>True when the grid can be modified</short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.HeaderClick">
<short>
<var>HeaderClick</var> - calls <var>OnHeaderClick</var> if assigned
</short>
<descr>
<p>
<var>HeaderClick</var> - calls <var>OnHeaderClick</var> if assigned.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.TCustomGrid.HeaderClick">TCustomGrid.HeaderClick</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.HeaderClick.IsColumn">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.HeaderClick.Index">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.HeaderSized" link="#lcl.Grids.TCustomGrid.HeaderSized">
<short>
Updates Columns in the control when a a header cell is resized
</short>
<descr>
<p>
<var>HeaderSized</var> is an overridden procedure which updates the Columns for the control when a header cell is resized. If IsColumn contains False the resize operation was for the height of a header row and no action is performed in the method. When IsColumn contains True the request applies to the width of the column with the Field at the position specified in Index.
</p>
<p>
HeaderSized calls the ColumnIndexFromGridColumn method to determine the position in the Columns collection for the Field specified in Index. The width in Columns is updated with the corresponding value from ColWidths. HeaderSized sets the value in DefaultColWidths to False to indicate that custom column sizing has been applied to the control.
</p>
<p>
HeaderSized signals theOnColumnSized event handler when assigned for the control.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.HeaderSized.IsColumn">
<short>Sizing applies to a column and not a row</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.HeaderSized.Index">
<short>Ordinal position for the column</short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.KeyDown">
<short>
<var>KeyDown</var> handles special keys and signals the <var>OnKeyDown</var> event handler
</short>
<descr>
<p>
<var>KeyDown</var> ensures that keys which affect navigation and editing operations are handled in the grid control. KeyDown handles the following keys:
</p>
<dl>
<dt><var><b>Tab</b></var></dt>
<dd>
Advances to the next column when dgTabs is included in Options. Otherwise exits the control.
</dd>
<dt><var><b>Shift + Tab</b></var></dt>
<dd>
Moves to the previous column when dgTabs is included in Options. Otherwise exits the control.
</dd>
<dt><var><b>Return</b></var></dt>
<dd>
Enables the editor for the cell when dgEditing is included in Options.
Otherwise advances to the next column.
</dd>
<dt><var><b>Ctrl + Delete</b></var></dt>
<dd>
Deletes the selected row when dgDisableDelete has not been included in Options. A confirmation dialog is displayed when dgConfirmDelete is included in Options.
</dd>
<dt><var><b>Up</b></var></dt>
<dd>
Moves to the previous row in the dataset. The currently selected column remains the same.
</dd>
<dt><var><b>Down</b></var></dt>
<dd>
Moves to the next row in the dataset. The currently selected column remains the same. Appends a new row when positioned at the end of the dataset and dgDiableInsert has not been included in Options.
</dd>
<dt><var><b>Page Up</b></var></dt>
<dd>
Moves towards the beginning of the dataset by the number of rows specified in VisibleRows.
</dd>
<dt><var><b>Page Down</b></var></dt>
<dd>
Moves towards the end of the dataset by the number of rows specified in VisibleRows.
</dd>
<dt><var><b>Escape</b></var></dt>
<dd>
Cancels an active editor for the selected cell. Clears pending modifications to the Field for the column.
</dd>
<dt><var><b>Insert</b></var></dt>
<dd>
Inserts a new row at the current row position when dgDisableInsert has not been included in Options. The actual position for the new row can change if the dataset has sorting or ordering capabilities.
</dd>
<dt><var><b>Home</b></var></dt>
<dd>
Changes the selected cell to first non-fixed column in the control. An active editor is removed.
</dd>
<dt><var><b>Ctrl + Home</b></var></dt>
<dd>
Moves to the first row in the dataset. An active editor is removed.
</dd>
<dt><var><b>End</b></var></dt>
<dd>
Changes the selected cell to the last visible column in the control. An active editor is removed.
</dd>
<dt><var><b>Ctrl + End</b></var></dt>
<dd>
Moves to the last row in the dataset. An active editor is removed.
</dd>
<dt><var><b>Space</b></var></dt>
<dd>
Toggles the value in a column which uses a checkbox editor.
</dd>
<dt><var><b>Ctrl + Multiply (Num Pad *)</b></var></dt>
<dd>
Toggles the selected state for the current row when dgMultiSelect is included in Options.
</dd>
</dl>
<p>
<var>KeyDown</var> reads and writes values in GridFlags as needed while handling cell editors and performing dataset navigation.
</p>
<p>
<var>KeyDown</var> calls the inherited <var>KeyDown</var> method to process keys not explicitly handled by the data-aware control.
</p>
<p>
<var>KeyDown</var> signals the <var>OnKeyDown</var> event handler when it has been assigned for the control.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.KeyDown.Key">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.KeyDown.Shift">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.LinkActive">
<short>
<var>LinkActive</var> updates the control after a change to the state of its DataLink
</short>
<descr>
<p>
<var>LinkActive</var> is a procedure which updates the control when the state of its DataLink is changing. Value contains False when the dataset for the DataLink will be closed. The state change causes updates to other control properties like SelectedRows, and the KeyBookmark which tracks the selected row in the linked dataset. LinkActive calls RemoveAutomaticColumns to remove automatic columns added to the control when the DataLink became active. The LayoutChanged method is called to refresh the control after updates to the Columns property.
</p>
<p>
No actions are performed in the method when Value contains True.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.LinkActive.Value">
<short>True when the dataset is open</short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.LayoutChanged">
<short>
<var>LayoutChanged</var> links columns to Fields and inserts any required automatic columns
</short>
<descr>
<p>
<var>LayoutChanged</var> is a virtual procedure used to link Columns to the Fields which read and write the values used in the control. LayoutChanged calls the TDBGridColumns.LinkFields method establish the column-to-field association. If Columns have not been explicitly defined the AddAutomaticColumns method is called to add a column for each Field in the linked dataset.
</p>
<p>
LayoutChanged calls the BeginLayout and EndLayout methods to minimize the number of times the OnLayoutChange event is signalled during updates to the control.
</p>
<p>
LayoutChanged performs no actions when ComponentState indicates the control is being destroyed (contains csDestroying).
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.Loaded" link="#rtl.Classes.TComponent.Loaded">
<short>
Performs layout operations after the control is loaded at run-time
</short>
<descr>
<p>
<var>Loaded</var> performs the notification that signals component streaming has been completed at run-time. Loaded calls the LayoutChanged method to update the visual appearance of the control. Loaded calls the inherited Loaded method
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.MoveSelection">
<short>
<var>MoveSelection</var> changes the current selection in the control
</short>
<descr>
<p>
<var>MoveSelection</var> causes the current selection in the control to be changed. MoveSelection calls the inherited MoveSelection method. If the selection change causes a different column to become active, the OnColEnter event handler is signalled (when assigned). MoveSelection calls the UpdateActive method to ensure that the correct row and/or column are drawn in the control.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.TCustomGrid.MoveSelection">TCustomGrid.MoveSelection</link>
</seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.MouseDown">
<short>
<var>MouseDown</var> handles mouse down messages in the control and signals the <var>OnMouseDown</var> event handler
</short>
<descr>
<p>
<var>MouseDown</var> handles mouse button clicks (when allowed) in the control. MouseDown ensures that the specified Button and State are correctly applied to the control similar to the processing provided in KeyDown method. MouseDown translates screen coordinates into the row and column numbers used in the control and performs actions needed for focus selection editing or navigation.
</p>
<p>
MouseDown signals the OnMouseDown event handler when assigned in the class instance.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.MouseDown.Button">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.MouseDown.Shift">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.MouseDown.X">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.MouseDown.Y">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.PrepareCanvas" link="#lcl.Grids.TCustomGrid.PrepareCanvas">
<short>
Prepares the Canvas to render the specified cell with the drawing state in aState
</short>
<descr>
<p>
PrepareCanvas prepares the Canvas used to render the cell at the specified position with the drawing state in aState. PrepareCanvas calls the inherited PrepareCanvas method and sets the brush color in the Canvas to the value need for fixed or focus/selected columns.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.PrepareCanvas.aCol">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.PrepareCanvas.aRow">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.PrepareCanvas.aState">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.SelectEditor" link="#lcl.Grids.TCustomGrid.SelectEditor">
<short>
Gets the editor used for the SelectedField in the control
</short>
<descr>
<p>
<var>SelectEditor</var> is a procedure used to get the editor used for the
SelectedField in the control. SelectEditor requires an active dataset in
DataLink to access properties and methods in SelectedField. SelectEditor uses
SelectedField to get the maximum length of the Field in the dataset and
stores the value in the Editor for the control.
</p>
<p>
SelectEditor calls the Inherited SelectEditor method to initialize the class used in the Editor property. SelectEditor signals the OnSelectEditor event handler (when assigned) to get a custom value for the Editor property. Please note that Editor is set to <var><b>Nil</b></var> if the OnSelectEditor event handler is not assigned for the control.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.SetEditText" link="#lcl.Grids.TCustomGrid.SetEditText">
<short>
Sets the textual value for the editor in the specified cell
</short>
<descr>
<p>
SetEditText sets the textual value for the editor in the specified cell.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.SetEditText.ACol">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.SetEditText.ARow">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.SetEditText.Value">
<short></short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.SelectCell">
<short>
Indicates if the cell at the specified coordinates can be selected in the control
</short>
<descr>
<p>
<var>SelectCell</var> is an overridden Boolean function that indicates if the cell at the specified coordinates can be selected in the control. SelectCell uses ColWidths and RowHeights to determine if the cell can be visually selected. The return value is True when both contain positive non-zero values.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.SelectCell.Result">
<short>True when the cell can be selected</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.SelectCell.aCol">
<short>Column for the cell</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.SelectCell.aRow">
<short>Row for the cell</short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.UpdateActive">
<short>
<var>UpdateActive</var> redraws the control when the active row in the dataset is changed
</short>
<descr>
<p>
<var>UpdateActive</var> forces the control to be redrawn when the active row in the linked dataset is changed. UpdateActive requires an active dataset in DataLink with a selected record. No actions are performed in the method when the dataset is closed or contains no rows. UpdateActive calls InvalidateCell when the selected row in the control has changed. InvaidateRow is called to update the selected row in the control.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.UpdateGridCounts">
<short>
Gets the total number of visible columns (or fields) in the grid
</short>
<descr>
<p>
<var>UpdateGridCounts</var> is an Integer function which gets the total number of visible columns (or fields) in the grid control.
</p>
<p>
UpdateGridCounts calls GetColumnCount to get the number of entries in the Columns collection. When Columns have been defined, and DataLink is Active, the RecCount and RowCount variables are updated. The UpdateGridColumnSizes method is used to adjust the sizes for the columns. If the linked dataset is Active, and a Row is Selected, the AdjustEditorBounds method is called.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.UpdateGridCounts.Result">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.WMVScroll" link="#lcl.Grids.TCustomGrid.WMVScroll">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.WMVScroll.Message">
<short></short>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.Columns">
<short>
Columns provides access to columns defined for the database grid control
</short>
<descr>
<p>
Columns is a TDBGridColumns property that provides access to columns defined for the database grid control. Items in the Columns collection are represented as TColumn instances and can be explicitly created in the IDE at design-time, or automatically added when the OptionsExtra property includes the value dgeAutoColumns.
</p>
</descr>
<seealso>
<link id="TDBGridColumns">TDBGridColumns</link>
<link id="TColumn">TColumn</link>
<link id="TDBGrid.OptionsExtra">TDBGrid.OptionsExtra</link>
</seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.DataSource">
<short>
Provides access to the dataset displayed in the grid
</short>
<descr>
<p>
<var>DataSource</var> is a TDataSource property which provides access to the DataSet displayed in the database grid control. Read and write access to the property are redirected to the DataLink property.
</p>
<p>
Reading the value for DataSource returns the value stored in the <var>TComponentDataLink</var> instance.
</p>
<p>
Writing the value for DataSource sets the value in the TComponentDataLink instance (when they are not the same). Write access to DataSource also resets the width of columns in the grid by calling <var>RenewColWidths</var>. <var>UpdateActive</var> is called to redraw the grid control after changes to the DataSource and Columns properties.
</p>
</descr>
<seealso>
</seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.Options">
<short>
Enables or disables optional features or behaviors in the grid control
</short>
<descr>
<p>
Options is a TDBGridOptions property that specifies features or behaviors that can be enabled or disabled by values stored in the property. Please note that these options are different than the TGridOption values used in the ancestor class. Options can contain zero (0) or more values from the TDBGridOption enumeration.
</p>
<p>
Options contains the following default values when the control is created:
</p>
<ul>
<li>dgColumnResize</li>
<li>dgColumnMove</li>
<li>dgTitles</li>
<li>dgIndicator</li>
<li>dgRowLines</li>
<li>dgColLines</li>
<li>dgConfirmDelete</li>
<li>dgCancelOnExit </li>
<li>dgTabs</li>
<li>dgEditing</li>
<li>dgAlwaysShowSelection</li>
</ul>
<p>
See TDBGridOption for more information about values in the enumeration and their meanings.
</p>
<p>
Changing value(s) in Options causes other aspects of the grid control to be updated to reflect change(s) to the property. ChangedOptions is updated to reflect the enumeration values added or removed in the request. Some enumeration values force other features or behaviors to be disabled. For instance: row selection. Enabling row selection forces the options for editing, always displaying the editor, and row highlighting to be removed from the Options property. Finally, removing multi-selection from the Options property forces the SelectedRows and KeyBookmark properties to be cleared.
</p>
<p>
The TDBGridOption values stored in Options are different than the TGridOption values used in the ancestor class. As a result, SetOptions (the write access specifier) must translate any TDBGridOption values to their TGridOption equivalents and store them in the inherited Options property. Welcome to the dark world of inheritance in visual controls. It's tedious... just look at the code.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.ReadOnly">
<short>
Indicates if modifications are allowed in the grid control
</short>
<descr>
<p>
ReadOnly is a Boolean property that indicates if modifications are allowed in the grid control. Please note that ReadOnly applies to the visual grid control only. It does not take into account whether Fields in Columns or the DataSet in DataSource allows modifications.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OnCellClick">
<short>
Event handler for mouse click in a column for the grid
</short>
<descr>
<p>
<var>OnCellClick</var> is a <var>TDBGridClickEvent</var> property that contains the event handler signalled when a mouse button is clicked in a cell for the grid control. Assign a procedure to the OnCellClick property to respond to mouse click messages in a column for the grid control.
</p>
<p>
OnCellClick is used the implementation of the CellClick method.
</p>
</descr>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OnColEnter">
<short>
Event handler signalled when the mouse enters a column
</short>
<descr>
<p>
<var>OnColEnter</var> is a <var>TNotifyEvent</var> property that implements the event handler signalled when the mouse enters a column for the grid control. OnColEnter is also signalled when the grid control gains focus. Assign a procedure to the property to allow responding to the notification event.
</p>
<p>
OnColEnter is triggered from the <var>MoveSelection</var> method.
</p>
</descr>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OnColExit">
<short>
Event handler signalled when the mouse exits a column
</short>
<descr>
<p>
<var>OnColExit</var> is a <var>TNotifyEvent</var> property that implements the event handler signalled when the mouse exits a column in the grid control. OnColExit is also signalled when the grid control loses focus. Assign a procedure to the property to allow responding to the notification event.
</p>
<p>
OnColExit is triggered from the <var>BeforeMoveSelection</var> method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OnColumnMoved">
<short>
Event handler signalled when the order of a column is changed
</short>
<descr>
<p>
<var>OnColumnMoved</var> is a <var>TMovedEvent</var> property that implements an event handler signalled when the order of a column in the grid control is changed. Assign a procedure to the event handler to respond to the event notification. OnColumnMoved is triggered from the <var>ColRowMoved</var> method after the new column ordering has been applied.
</p>
<p>
Use <var>OnRowMoved</var> to responding to row ordering notification events.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OnDrawColumnTitle">
<short>
Event handler signalled when a cell title needs to be drawn
</short>
<descr>
<p>
<var>OnDrawColumnTitle</var> is a <var>TDrawColumnCellEvent</var> property that implements the event handler signalled when a cell title in the control needs to be drawn. Assign a procedure to the event handler to perform drawing needed for the cell title using the arguments to the routine.
</p>
</descr>
<seealso>
<link id="TDrawColumnCellEvent">TDrawColumnCellEvent</link>
</seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OnDrawColumnCell">
<short>
Event handler signalled when a cell needs to be drawn
</short>
<descr>
<p>
<var>OnDrawColumnCell</var> is a <var>TDrawColumnCellEvent</var> property that implements the event handler signalled when a cell in the control needs to be drawn. Assign a procedure to the event handler to perform drawing needed for the cell using the arguments to the routine.
</p>
<p>
OnDrawColumnCell is triggered from the <var>DrawCell</var> method after the Canvas is prepared and any fixed cell or DefaultDrawing is performed. Please note that OnDrawColumnCell is not performed at design-time, or for fixed rows in the grid control.
</p>
</descr>
<seealso>
<link id="TDrawColumnCellEvent">TDrawColumnCellEvent</link>
</seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OnFieldEditMask">
<short>
Event handler signalled to get the edit mask for a Field
</short>
<descr>
<p>
<var>OnFieldEditMask</var> is a <var>TGetDbEditMaskEvent</var> property that implements the event handler signalled to get the edit mask used for a Field in the grid control. OnFieldEditMask allows overriding the edit mask assigned to a Field in the Columns property, or assigning an edit mask for Fields that do not already have one. Assign a procedure to the event handler to respond to the event notification.
</p>
<p>
OnFieldEditMask is triggered from the <var>GetEditMask</var> method when the DataSet in DataLink is active.
</p>
</descr>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OnTitleClick">
<short>
Event handler for mouse clicks on a Title cell
</short>
<descr>
<p>
<var>OnTitleClick</var> is a <var>TDBGridClickEvent</var> property that implements the event handler signalled when a mouse click occurs in the fixed title cell for a column. Use OnTitleClick to perform actions required when the title cell for a column is clicked. Assign a procedure to the event handler to respond to the event notification.
</p>
<p>
OnTitleClick is triggered from the <var>DoHeaderClick</var> method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- constructor visibility: public -->
<element name="TCustomDBGrid.Create">
<short>
</short>
<descr>
<p>
<var>Create</var> is the constructor for the <var>TCustomDBGrid</var> instance. Create calls the inherited <var>Create</var> method, and allocates resources for properties in the class instance. Create sets the default event handlers used in DataLink to the corresponding procedures in the class:
</p>
<ul>
<li>OnDataSetChanged</li>
<li>OnDataSetClose</li>
<li>OnDataSetOpen</li>
<li>OnDataSetScrolled</li>
<li>OnEditingChanged</li>
<li>OnFocusControl</li>
<li>OnInvalidDataset</li>
<li>OnInvalidDataSource</li>
<li>OnLayoutChanged</li>
<li>OnRecordChanged</li>
<li>OnUpdateData</li>
</ul>
<p>
Create calls RenewColWidths to set columns to their default widths and to disable column auto-sizing.
</p>
<p>
Create sets the values in the Options property to establish the baseline features and behavior enabled for the grid control, including:
</p>
<ul>
<li>dgColumnResize</li>
<li>dgColumnMove</li>
<li>dgTitles</li>
<li>dgIndicator</li>
<li>dgRowLines</li>
<li>dgColLines</li>
<li>dgConfirmDelete</li>
<li>dgCancelOnExit</li>
<li>dgTabs</li>
<li>dgEditing</li>
<li>dgAlwaysShowSelection</li>
</ul>
<p>
See the Options property and TDBGridOption type for more information on values in the enumeration.
</p>
<p>
Values in the Options property from the ancestor class are also updated. They use the set of enumeration values in TGridOption, and are updated to include values which correspond to the TDBGridOption values used in the database grid control.
</p>
<p>
Create sets the default values in the ExtraOptions property to the following:
</p>
<ul>
<li>dgeAutoColumns</li>
<li>dgeCheckboxColumn</li>
</ul>
<p>
The value of the AutoAdvance property is set to aaRightDown, indicating the cell navigation is from left-to-right and then top-to-bottom in the grid control.
</p>
<p>
Create sets the value in ScrollBars to ssBoth indicating that both horizontal and vertical scroll bars are needed, and sets AllowOutboundEvents to False to prevent forwarding of event notifications to the ancestor class.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.TCustomGrid.Create">TCustomGrid.Create</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.Create.AOwner">
<short>Owner of the component</short>
</element>
<!-- procedure visibility: public -->
<element name="TCustomDBGrid.DefaultDrawColumnCell">
<short>
Default method used for drawing cells in a column
</short>
<descr>
<p>
<var>DefaultDrawColumnCell</var> is the default method used for drawing cells in a column. DefaultDrawColumnCell uses the specified column to get the Field and the editor style needed to render the cell.
</p>
<p>
Checkbox columns are drawn by calling the DrawCheckBoxBitmaps method. Other editor styles use the DisplayText for the TField as the value drawn using the DrawCellText method. Please note that Fields with a data type of ftBlob are always rendered as the string literal <var><b>'(blob)'</b></var>.
</p>
<p>
Use the OnDrawColumnCell event handler to render a cell when DefaultDrawing is not enabled for the grid control.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DefaultDrawColumnCell.Rect">
<short>Canvas rectangle for the cell</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DefaultDrawColumnCell.DataCol">
<short>Index of the Field for cell data</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DefaultDrawColumnCell.Column">
<short>Column definition for the cell</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DefaultDrawColumnCell.State">
<short>Grid drawing state for the cell</short>
</element>
<!-- destructor visibility: public -->
<element name="TCustomDBGrid.Destroy">
<short>
<var>Destroy</var> is the destructor for <var>TCustomDbGrid</var>
</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor in <var>TCustomDbGrid</var>. Destroy frees any bookmarks stored in the SelectedRows property. Destroys ensures that event handlers assigned to its DataLink property are removed prior to freeing resources allocated to the property.
</p>
<p>
Destroy calls the inherited <var>Destroy</var> method.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.TCustomGrid.Destroy">TCustomGrid.Destroy</link>
<link id="TCustomDBGrid.DataLink">TCustomDBGrid.DataLink</link>
<link id="TCustomDBGrid.SelectedRows">TCustomDBGrid.SelectedRows</link>
</seealso>
</element>
<!-- property visibility: public -->
<element name="TCustomDBGrid.SelectedField">
<short>
Field that reads and writes data for the currently selected column
</short>
<descr>
<p>
<var>SelectedField</var> is a TField property with the Field used to read and write data for the selected column in the grid control. SelectedField is updated when column navigation occurs in the control.
</p>
<p>
GetCurrentField is the read access specifier for the property, and returns the TField instance derived by GetFieldFromGridColumn for the selected column. SetCurrentField is the write access specifier for the property, and stores the new Field value as the selected column. No action is performed if the new Field value is the same as the current value for the property.
</p>
<p>
SelectedField is used in the implementation of various method in the control, such as: KeyDown, SelectEditor, UpdateData, and SwapCheckBox.
</p>
<p>
Use SelectedColumn to get the TColumn instance for the currently selected cell in the grid control.
</p>
</descr>
<seealso></seealso>
</element>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FExtraOptions"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FOnColumnSized"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FOnUserCheckboxBitmap"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FOnSelectEditor"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FDrawingMultiSelRecord"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FDrawingEmptyDataset"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FDefaultColWidths"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FGridStatus"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FOldControlStyle"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FCheckedBitmap"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FUnCheckedBitmap"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FGrayedBitmap"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FSelectedRows"/>
<!-- variable visibility: private -->
<element name="TCustomDBGrid.FOnPrepareCanvas"/>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.EmptyGrid">
<short>
Clears the data display area for the grid control
</short>
<descr>
<p>
<var>EmptyGrid</var> is a procedure used to clear the data content for the grid control. EmptyGrid calls the <var>Clear</var> method to remove the visual display for data in the grid control. Please note that stored data is not removed; only the visual display for the control is affected. EmptyGrid ensures that fixed display columns are retained. EmptyGrid also resets the width of the row indicator to its default value when <var>dgIndicator</var> is included in the <var>Options</var> for the control.
</p>
<p>
EmptyGrid is used in the implementation of the <var>DoLayoutChanged</var> method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.GetCurrentColumn">
<short>
Read access specifier for the SelectedColumn property
</short>
<descr>
<p>
<var>GetCurrentColumn</var> is a <var>TColumn</var> function used as the read access specifier for the SelectedColumn property. GetCurrentColumn checks the <var>Columns</var> property to ensure that it is enabled for the control. The return value is the TColumn instance stored at SelectedIndex in Columns when Enabled. The return value is <var>Nil</var> if Columns has not been enabled for the control.
</p>
<p>
Use SelectedColumn to get the currently selected column in the grid control. Use SelectedField to the TField which reads and writes data for the currently selected column in the grid control.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetCurrentColumn.Result">
<short></short>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.GetSelectedIndex">
<short>
Read access specifier for the SelectedIndex property
</short>
<descr>
<p>
<var>GetSelectedIndex</var> is an Integer function used as the read access specifier for the <var>SelectedIndex</var> property. GetSelectedIndex returns the ordinal position of the currently selected column in the Columns property. If Columns has not been Enabled for the control, the ordinal position of the Field for the currently selected column is returned.
</p>
<p>
Use SelectedIndex to read or write values for the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetSelectedIndex.Result">
<short>Ordinal position of the currently selected column</short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.SetExtraOptions">
<short>
Write access specifier for the ExtraOptions property
</short>
<descr>
<p>
<var>SetExtraOptions</var> is a procedure used as the write access specifier for the <var>ExtraOptions</var> property. SetExtraOptions ensures that new <var>TDBGridExtraOption</var> values in AValue are properly applied to the grid control. This includes repainting the control when Checkbox columns are enabled or disabled, and when adding or removing the automatic columns option. SetExtraOptions calls <var>UpdateActive</var> when automatic columns have been added or removed.
</p>
<p>
Use ExtraOptions to read or write values in the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.SetExtraOptions.AValue">
<short>New value for the ExtraOptions property</short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.SetSelectedIndex">
<short>
Write access specifier for the SelectedIndex property
</short>
<descr>
<p>
<var>SetSelectedIndex</var> is a procedure used as the write access specifier for the <var>SelectedIndex</var> property. SetSelectedIndex updates the ordinal position of the currently selected column to the specified value.
</p>
<p>
Use SelectedIndex to read or write values for the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.SetSelectedIndex.AValue">
<short>New value for the SelectedIndex property</short>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.ValidDataset">
<short>
Indicates the DataLink contains a valid and active Dataset
</short>
<descr>
<p>
ValidDataSet is a Boolean function used to indicate if the DataLink for the control contains a valid and active Dataset. The return value is True when DataLink has a Dataset assigned to the property, and it has been marked as Active.
</p>
<p>
ValidDataSet is used in the implementation of various methods including KeyDown, MouseDown, and DoExit.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.ValidDataset.Result">
<short>True when the control points to a valid dataset</short>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.InsertCancelable">
<short>
Indicates if the dataset can cancel an active insert
</short>
<descr>
<p>
InsertCancelable is a Boolean function that indicates if the dataset for the control can cancel an active insert operation. InsertCancelable uses the DataSet in DataLink to ensure that the State contains dsInsert. The return value is False if DataSet state has any value other than dsInsert. InsertCancelable also examines both DataSet and DataLink to see if either of their Modified properties has been set. The return value is False when either has been modified.
</p>
<p>
InsertCancelable is used in the implementation of methods like KeyDown, MouseDown, and DoExit.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.InsertCancelable.Result">
<short>True when the insert can be cancelled</short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.StartUpdating">
<short>
Prepares the grid control for updates to its display area
</short>
<descr>
<p>
StartUpdating is a procedure used to prepare the grid control for updates to its display area. StartUpdating checks the value from UpdatingData to see if the procedure has already been called. No actions are performed in the method when UpdatingData returns True.
</p>
<p>
StartUpdating updates the GridStatus property to include the value gsUpdatingData. The value in the ControlStyle property is also updated to include the value csActionClient. Finally, the LockEditor method is called to prevent changes in the editor control while the update is in progress.
</p>
<p>
StartUpdating and EndUpdating are used in the implementation of the UpdateData method to prevent multiple calls to UpdateData.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.EndUpdating">
<short>
Restores the status of the control after updating its display area
</short>
<descr>
<p>
EndUpdating is a procedure used to restore the status of the control after an update to its display area. EndUpdating ensures that the value gsUpdatingData is removed from the GridStatus property, and restores the value in ControlStyle to its value prior to starting the update; the value csActionClient is removed from the property. The UnLockEditor method is called to re-enable an editor control in the grid.
</p>
<p>
StartUpdating and EndUpdating are used in the implementation of the UpdateData method to prevent multiple calls to UpdateData.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function visibility: private -->
<element name="TCustomDBGrid.UpdatingData">
<short>
Indicates if UpdateData has already been called for the control
</short>
<descr>
<p>
UpdatingData is a Boolean function that indicates if the UpdateData method has already been called for the grid control. UpdatingData returns True if the GridStatus property contains the value gsUpdatingData. The GridStatus value is added in the StartUpdating method. UpdatingData prevents multiple calls to UpdateData.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.UpdatingData.Result">
<short>True when UpdateData has been called for the control</short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.SwapCheckBox">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.ToggleSelectedRow">
<short>
Toggles the bookmark in SelectedRows for the current grid row
</short>
<descr>
<p>
<var>ToggleSelectedRow</var> is a procedure used add or remove the bookmark for the current row in the <var>SelectedRows</var> property. ToggleSelectedRow calls the <var>SelectRecord</var> method to toggle the value in SelectRows using its <var>CurrentRowSelected</var> property. ToggleSelectedRow is used in the <var>KeyDown</var> or <var>MouseDown</var> methods when <var><b>Ctrl + Multiply</b> (Num Pad *)</var> or <var><b>Ctrl + MBLeft</b></var> are pressed.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.SelectRecord">
<short>
Changes the selection in the SelectedRows property
</short>
<descr>
<p>
SelectRecord is a procedure used to change the SelectedRows.CurrentRowSelected property to the specified value. SelectRecord checks the Options property to see if the value dgMultiSelect is included, and updates SelectedRows.CurrentRowSelected. No action is performed in the method if Options does not include the value dgMultiSelect.
</p>
<p>
SelectRecord is used in the implementation of various methods such as: KeyDown, MouseDown, ToggleSelectedRow,
and ClearSelection.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.SelectRecord.AValue">
<short>True when the current record should be selected</short>
</element>
<!-- procedure visibility: private -->
<element name="TCustomDBGrid.GetScrollbarParams">
<short>
Adjusts scrollbars using the record count and the visible rows for the control
</short>
<descr>
<p>
GetScrollbarParams is a procedure used to adjust scrollbars using the record count for the dataset and the number of visible rows for the control.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetScrollbarParams.aRange">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetScrollbarParams.aPage">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetScrollbarParams.aPos">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.AddAutomaticColumns">
<short>
Adds a column for each Field in the dataset
</short>
<descr>
<p>
<var>AddAutomaticColumns</var> is a procedure used to add a column for each Field in the dataset.
</p>
<p>
Please note that AddAutomaticColumns can be performed at run-time only; no actions are performed in the method at design-time.
</p>
<p>
AddAutomaticColumns requires an active dataset to access the Fields that must be added to the grid control. No actions are performed if the dataset in DataLink has not been assigned or marked as Active.
</p>
<p>
AddAutomaticColumns cannot be performed when GridStatus contains either gsRemovingAutoColumns or gsLoadingGrid. No actions are performed in the method when these values are included in the GridStatus property.
</p>
<p>
AddAutomaticColumns is enabled by including the value dgeAutoColumns in the OptionsExtra property. No actions are performed in the method when the feature has not been included in the OptionsExtra property.
</p>
<p>
AddAutomaticColumns uses DataLink to get the Fields for the dataset, and checks the Columns collection to see if a column already exists for each Field. If the Field is already in the collection, it is skipped to avoid duplicate Fields. Missing Fields are added to Columns using its Add method, and sets the IsAutomaticColumn and Visible properties to True for each. When missing Fields have been added, the ResetColumnsOrder method in Columns is called using the coFieldIndexOrder column ordering option.
</p>
<p>
AddAutomaticColumns updates the GridStatus property prior to adding columns to include the value gsAddingAutoColumns. The value is removed from GridStatus when adding columns has completed. This prevents the TDBGridColumns.Add method from removing automatic columns while the add operation is still active.
</p>
<p>
See RemoveAutomaticColumns for information about removing automatic columns in the Columns collection.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.InvalidateSizes">
<short>
<var>InvalidateSizes</var> renders the Sizes non-valid
</short>
<descr>
<p>
<var>InvalidateSizes</var> is a procedure used to force the grid to recalculate column sizes and to repaint its display area. InvalidateSizes updates the GridFlags for the control to include the value gfVisualChange.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.ColumnEditorStyle">
<short>
<var>ColumnEditorStyle</var> gets the button style for the column being edited
</short>
<descr>
<p>
<var>ColumnEditorStyle</var> is a TColumnButtonStyle function used to get the button style for the specified column number or Field in the grid control. ColumnEditorStyle assumes the default button style is cbsAuto unless overridden by settings in the Columns collection or by the Field definition in the dataset.
</p>
<p>
ColumnEditorStyle calls ColumnFromGridColumn to get the TColumn instance for the specified column number. Its ButtonStyle property is used as the return value if Columns has been Enabled. Otherwise, DefaultEditorStyle is called for the specified TField to get the return value for the method. DefaultEditorStyle will use cbsCheckBoxColumn as the button style when dgeCheckboxColumn has been included in the OptionsExtra property.
</p>
<p>
ColumnEditorStyle is used in the implementation of various methods including: CellClick, DefaultDrawCell, DefaultDrawColumnCell, EditorByStyle, KeyDown and MouseDown.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.ColumnEditorStyle.Result">
<short>Button style for the column or Field</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.ColumnEditorStyle.aCol">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.ColumnEditorStyle.F">
<short></short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.DoMouseWheelDown">
<short>
Handle mouse wheel down events in the grid control
</short>
<descr>
<p>
<var>DoMouseWheelDown</var> is an overridden Boolean function used to handle mouse wheel down events in the grid control. The return value is True when the mouse wheel event has been handled in the method. DoMouseWheelDown signals the OnMouseWheelDown event handler when it has been assigned to handle the mouse event. If OnMouseWheelDown cannot handle the mouse event, and the DataLink is marked as Active, DataLink calls its MoveBy method.
</p>
</descr>
<seealso>
<link id="#lcl.Controls.TControl.DoMouseWheelDown">TControl.DoMouseWheelDown
</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.DoMouseWheelDown.Result">
<short>True when the mouse event is handled in the method</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DoMouseWheelDown.Shift">
<short>Shift state for the mouse wheel event</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DoMouseWheelDown.MousePos">
<short>Location of the mouse wheel event</short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.DoMouseWheelUp">
<short>
Handle mouse wheelup events in the grid control
</short>
<descr>
<p>
<var>DoMouseWheelUp</var> is an overridden Boolean function used to handle mouse wheel up events in the grid control. The return value is True when the mouse wheel event has been handled in the method. DoMouseWheelUp signals the OnMouseWheelUp event handler when it has been assigned to handle the mouse event. If OnMouseWheelUp cannot handle the mouse event, and the DataLink is marked as Active, DataLink calls its MoveBy method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.DoMouseWheelUp.Result">
<short>True when the mouse event is handled in the method</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DoMouseWheelUp.Shift">
<short>Shift state for the mouse wheel event</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DoMouseWheelUp.MousePos">
<short>Location of the mouse wheel event</short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.DoPrepareCanvas">
<short>
Prepares the canvas and signals OnPrepareCanvas
</short>
<descr>
<p>
<var>DoPrepareCanvas</var> is an overridden procedure used to prepare the Canvas to draw a cell in the grid control. DoPrepareCanvas applies to data cells and performs no actions in the method when aRow refers to a fixed row in the control. In addition, DoPrepareCanvas applies only when DefaultDrawing contains False. No actions are performed in the method when DefaultDrawing is enabled.
</p>
<p>
DoPrepareCanvas calls GetSelectedState to determine if the Canvas is updated with brush and font colors used to draw in a selected state. DoPrepareCanvas signals the OnPrepareCanvas event handler when it has been assigned for the control using the specified column number and drawing state.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.TCustomGrid.DoPrepareCanvas">TCustomGrid.DoPrepareCanvas</link>
</seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DoPrepareCanvas.aCol">
<short>Column number for the operation</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DoPrepareCanvas.aRow">
<short>Row number for the operation</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DoPrepareCanvas.aState">
<short>Drawing state for the operation</short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.DrawAllRows" link="#lcl.Grids.TCustomGrid.DrawAllRows">
<short>
Draws all data rows in grid control
</short>
<descr>
<p>
DrawAllRows is an overridden procedure used to draw all data rows for the control. DrawAllRows checks the DataLink property to determine if a DataSet is available for the operation. When DataLink is marked as Active, its ActiveRecord is used to reposition the DataSet after the drawing operation is completed. DrawAllRows calls the inherited method, and restores the position of the DataSet prior to exiting from the method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.DrawCheckboxBitmaps">
<short>
Draws a Checkbox bitmap for the specified Boolean column
</short>
<descr>
<p>
<var>DrawCheckboxBitmaps</var> is a procedure used to draw the Checkbox bitmap for the specified column. DrawCheckboxBitmaps draws the checkbox bitmap only when the editor for the column is not visible; otherwise, no actions are performed in the method.
</p>
<p>
DrawCheckboxBitmaps examines the specified Field argument to ensure that it uses a Boolean data type. If the Field IsNull, the value cbGrayed is assigned to the aState argument. Otherwise, the TField.AsBoolean method is used to determine if aState is set to cbChecked or cbUnChecked. For Fields that do not use ftBoolean in the data type, the TField.AsString method is used to determine if the Field matches the value in TColumn.ValueChecked or TColumn.ValueUnChecked.
</p>
<p>
DrawCheckboxBitmaps signals the DrawCheckboxBitmaps event handler when it has been assigned in the control.
</p>
<p>
DrawCheckboxBitmaps calls the DrawGridCheckboxBitmaps method to render the Checkbox bitmap with the necessary drawing state.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawCheckboxBitmaps.aCol">
<short>Column number to draw</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawCheckboxBitmaps.aRect">
<short>Canvas rectangle for the operation</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawCheckboxBitmaps.F">
<short>Field with data for the column</short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.DrawFixedText">
<short>
Draws the fixed text at the specified row and column numbers
</short>
<descr>
<p>
DrawFixedText is a procedure used to draw a fixed (or caption) cell at the specified row and column numbers. DrawFixedText calls the DrawIndicator method for the active record when aCol contains 0 (zero) and Options includes the value dgIndicator. Otherwise, the DrawColumnText method is called using the arguments passed to the method.
</p>
<p>
DrawFixedText is used in the implementation for the DefaultDrawCell method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawFixedText.aCol">
<short>Column number to draw</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawFixedText.aRow">
<short>Row number to draw</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawFixedText.aRect">
<short>Canvas rectangle for the drawing operation</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.DrawFixedText.aState">
<short>Drawing state for the operation</short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.GetBufferCount">
<short>
Gets the number of rows to buffer in the grid control
</short>
<descr>
<p>
<var>GetBufferCount</var> is a virtual Integer function used to get the number of rows to buffer for display in the grid control. The return value contains the number of rows that can be displayed using the DefaultRowHeight for the control. The return value is decreased by 1 when column titles are enabled in the Options property with the dgTitles enumeration value.
</p>
<p>
GetBufferCount is called from the UpdateBufferCount method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetBufferCount.Result">
<short>Number of data rows visible in the grid control</short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.GetDefaultColumnAlignment">
<short>
Gets the default alignment for the column
</short>
<descr>
<p>
<var>GetDefaultColumnAlignment</var> is an overridden TAlignment function used to get the default alignment for data at the specified column number. GetDefaultColumnAlignment gets the TField for the specified column when assigned, and uses its Alignment property as the return value for the method. The value taLeftJustify is used when a TField cannot be found for the specified column number.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetDefaultColumnAlignment.Result">
<short>Default alignment for the column</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetDefaultColumnAlignment.Column">
<short>Column number to use from the dataset</short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.GetDefaultColumnWidth">
<short>
Gets the default width for the specified column
</short>
<descr>
<p>
<var>GetDefaultColumnWidth</var> is an overridden Integer function used to get the default width for the specified column number. GetDefaultColumnWidth calls the DefaultFieldColWidth method for the specified column. The return value is the width of the column calculate using either the display name or the display width for the TField in the column.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetDefaultColumnWidth.Result">
<short>Default width of the column</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetDefaultColumnWidth.Column">
<short>Column number to use for the calculation</short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.GetDefaultColumnReadOnly">
<short>
Gets the default ReadOnlyvalue for the specified column
</short>
<descr>
<p>
<var>GetDefaultColumnReadOnly</var> is an overridden Boolean function used to get the ReadOnly value for the grid control. GetDefaultColumnReadOnly determines the effective read only status for the control using the ReadOnly property, as well as the DataLink property and the TField used for the specified column.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetDefaultColumnReadOnly.Result">
<short>True when the column cannot be modified</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetDefaultColumnReadOnly.Column">
<short>Column number to examine</short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.GetDefaultColumnTitle">
<short>
Gets the default title displayed for the specified column
</short>
<descr>
<p>
<var>GetDefaultColumnTitle</var> is an overridden String function used to get the default title displayed for the specified column number. GetDefaultColumnTitle gets the TField used for the column (when available) and uses its DisplayName as the return value for the method. The return value is an empty String ('') when a TField instance is not available for the specified column.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetDefaultColumnTitle.Result">
<short>Default title for the column</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetDefaultColumnTitle.Column">
<short>Column number to locate in the Fields for the grid control</short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.GetDefaultRowHeight">
<short>
Get the default row height for records displayed in the grid
</short>
<descr>
<p>
<var>GetDefaultRowHeight</var> is an overridden Integer function used to get the default row height for records displayed in the grid control. GetDefaultRowHeight calls the inherited GetDefaultRowHeight method to get the return value for the method. The calculated row height is decreased by 2 pixels to allow space for borders on the editors overlaid onto the grid control.
</p>
</descr>
<seealso>
<link id="#lcl.Grids.TCustomGrid.GetDefaultRowHeight">TCustomGrid.GetDefaultRowHeight</link>
</seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetDefaultRowHeight.Result">
<short>Default height for records displayed in the control</short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.GetImageForCheckBox">
<short>
Gets the bitmap displayed for a Checkbox at the specified location
</short>
<descr>
<p>
GetImageForCheckBox is an overridden TBitmap function used to get the bitmap displayed for a Checkbox at the specified location in the grid control. GetImageForCheckBox calls the inherited GetImageForCheckBox method using the passed arguments to get the return value. GetImageForCheckBox signals the OnUserCheckboxBitmap event handler when it has been assigned in the control to allow overriding the TBitmap used for the desired TCheckboxState.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetImageForCheckBox.Result">
<short>Bitmap to display for the Checkbox column</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetImageForCheckBox.aCol">
<short>Column number for the cell</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetImageForCheckBox.aRow">
<short>Row number for the cell</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetImageForCheckBox.CheckBoxView">
<short>Checkbox state for the column</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetImageForCheckBox.ImageList">
<short>Images for the checkbox states</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetImageForCheckBox.ImageIndex">
<short>Ordinal position for the image</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetImageForCheckBox.Bitmap">
<short>Bitmap for the checkbox</short>
</element>
<!-- function visibility: protected -->
<element name="TCustomDBGrid.GetIsCellSelected" link="#lcl.Grids.TCustomGrid.GetIsCellSelected">
<short>
Determines if the cell at the specified location is currently selected
</short>
<descr>
<p>
<var>GetIsCellSelected</var> is an overridden Boolean function used to determine if the cell at the specified location is currently selected. GetIsCellSelected calls the inherited method to get the return value, and also examines the value in DrawingMultiSelRecord. The return value is True when the cell is either selected or multi-selected (when enabled).
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.GetIsCellSelected.Result">
<short>True when the specified cell is selected or multi-selected</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetIsCellSelected.aCol">
<short>Column number to examine</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetIsCellSelected.aRow">
<short>Row number to examine</short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.GetSBVisibility" link="#lcl.Grids.TCustomGrid.GetSBVisibility">
<short>
Determines the visibility of horizontal and vertical scroll bars for the control
</short>
<descr>
<p>
GetSBVisibility is an overridden procedure used to determine the visibility of horizontal and vertical scroll bars for the control. GetSBVisibility calls the inherited method to use the logic implemented in the ancestor class. GetSBVisibility overrides the value used for the vertical scroll bar; it is set to True when ScrollBars contains ssVertical or ssBoth. ScrollBarAutomatic is called when the vertical scroll bar is not visible, and the GetScrollbarParams method is used to update the vertical scrollbar settings.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetSBVisibility.HsbVisible">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetSBVisibility.VsbVisible">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.GetSBRanges" link="#lcl.Grids.TCustomGrid.GetSBRanges">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetSBRanges.HsbVisible">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetSBRanges.VsbVisible">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetSBRanges.HsbRange">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetSBRanges.VsbRange">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetSBRanges.HsbPage">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.GetSBRanges.VsbPage">
<short></short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.RemoveAutomaticColumns">
<short>
Removes automatic columns added to the grid control
</short>
<descr>
<p>
<var>RemoveAutomaticColumns</var> is a procedure used to remove automatic columns added to the grid control in the AddAutomaticColumns method. Automatic columns are generated at run-time when the value dgeAutoColumns is included in the OptionsExtra property. The feature cannot be enabled at design-time. No actions are performed in the method at design-time.
</p>
<p>
RemoveAutomaticColumns uses the Columns property to execute its RemoveAutoColumns method which removes the automatic columns in the collection.
</p>
<p>
RemoveAutomaticColumns is used in the implementation of the LinkActive and the SetExtraOptions methods.
</p>
<p>
Use the OptionsExtra property to control adding and removing automatic columns at run-time.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.WndProc" link="#lcl.Controls.TControl.WndProc">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.WndProc.TheMessage">
<short></short>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.GridStatus">
<short>
Stores status information about operations active for the grid control
</short>
<descr>
<p>
<var>GridStatus</var> is a TDBGridStatus property which stores status information for the grid control. GridStatus is a set type that can contain 0 (zero) or more values from the TDbGridStatusItem enumeration, and indicate operations occurring in the control at run-time. Values in GridStatus are added and removed in several methods for the grid control to prevent duplicate calls the method while the operation is active.
</p>
<p>
See TDbGridStatusItem for more information about the values in the enumeration and their meanings.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OptionsExtra">
<short>
Contains the extra options enabled for the grid control
</short>
<descr>
<p>
<var>OptionsExtra</var> is a TDBGridExtraOptions property used to store extra options enabled for the grid control. OptionsExtra is a set data type which can contain 0 (zero) or more values from the TDBGridExtraOption enumeration. The default values in the property include dgeAutoColumns and dgeCheckboxColumn; these values enable the use of automatic columns for the linked dataset and displaying checkboxes for Boolean columns.
</p>
<p>
SetExtraOptions is the write access specifier for the property, and ensures that the grid control is updated to reflect values added to or removed from the set.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.SelectedRows">
<short>
<var>SelectedRows</var> - recorded as a bookmark list
</short>
<descr>
<p>
<var>SelectedRows</var> is a read-only TBookmarkList property used to store TBookmark instance for one or more rows selected in the grid control. SelectedRows will normally contain a single TBookmark entry in its Items property for a selected row. However, multiples entry can exist when multi-selection is enabled by including the value dgMultiSelect in the Options property.
</p>
<p>
SelectedRows is updated when methods which perform record navigation call the DrawRow, SelectRecord or ToggleSelectedRow methods.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OnColumnSized">
<short>
Event handler signalled when a grid column has been resized
</short>
<descr>
<p>
<var>OnColumnSized</var> is a TNotifyEvent property that implements the event handler signalled when a column has been resized. OnColumnSized allows the application to perform actions required after the column has been resized. Assign a procedure to the event handler to respond to the event notification.
</p>
<p>
OnColumnSized is triggered from the HeaderSized method when a change to a column width was requested.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OnPrepareCanvas">
<short>
Event handler signalled to prepare the grid canvas for drawing a cell
</short>
<descr>
<p>
<var>OnPrepareCanvas</var> is a TPrepareDbGridCanvasEvent property that implements the event handler signalled to prepare the Canvas for drawing a cell in the grid. OnPrepareCanvas allows the application to provide custom settings in the Canvas for the Grid control. The <var>Sender</var> argument is the grid control, and can be used to access the Canvas or other properties in the component. Assign a procedure to the event handler to respond to the event notification.
</p>
<p>
OnPrepareCanvas is signalled from the DoPrepareCanvas method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnPrepareCanvas.sender">
<short>Grid to use for the operation</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnPrepareCanvas.DataCol">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnPrepareCanvas.Column">
<short></short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.OnPrepareCanvas.AState">
<short></short>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OnSelectEditor">
<short>
Event handler signalled when the editor is selected for a Field in the grid
</short>
<descr>
<p>
<var>OnSelectEditor</var> is a TDbGridSelEditorEvent property that implements the event handler signalled when an editor control is selected for the current Field in the grid. OnSelectEditor is used to modify or override the editor control for SelectedField in the grid control.
</p>
<p>
OnSelectEditor is signalled in the SelectEditor method after the default editor control has be chosen and its maximum length has been set. Assign a procedure to the event handler which modifies or assigns the control in the Editor argument.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: protected -->
<element name="TCustomDBGrid.OnUserCheckboxBitmap">
<short>
Event handler signalled to get the image used for a checkbox entry on the grid
</short>
<descr>
<p>
<var>OnUserCheckboxBitmap</var> is a property that implements the <var>TDBGridCheckboxBitmapEvent</var> event handler signalled to get the image used for a checkbox entry on the grid. OnUserCheckboxBitmap allows the application to override the TBitmap provided by the GetImageForCheckBox method. Assign a procedure to the event handler that implements the TDBGridCheckboxBitmapEvent interface to enable the event handler.
</p>
<p>
The user is encouraged to provide bitmaps to represent the three states for
database grid checkboxes: <var>gcbpUnChecked</var>, <var>gcbpChecked</var> and
<var>gcbpGrayed</var>.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: public -->
<element name="TCustomDBGrid.InitiateAction">
<short>
Initiates the action associated with the grid control
</short>
<descr>
<p>
<var>InitiateAction</var> is an overridden procedure used to initiate the action associated with the grid control. InitiateAction calls the inherited InitiateAction method. The EndUpdating method is called when GridStatus includes the value gsUpdatingData.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function visibility: public -->
<element name="TCustomDBGrid.EditorByStyle" link="#lcl.Grids.TCustomGrid.EditorByStyle">
<short>
Gets an editor control with the specified button style
</short>
<descr>
<p>
<var>EditorByStyle</var> is an overridden TWinControl function used to a get an editor control with the specified button style. EditorByStyle calls the ColumnEditorStyle method to get the button style for the current column and SelectedField. This allows the grid to override the cbsAuto button style when the SelectedField contains a Boolean data type. EditorByStyle calls the inherited method using the derived TColumnButtonStyle value as an argument. The editor control in the return value is supplied by the inherited EditorByStyle method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- function result visibility: default -->
<element name="TCustomDBGrid.EditorByStyle.Result">
<short>Editor control for the specified button style</short>
</element>
<!-- argument visibility: default -->
<element name="TCustomDBGrid.EditorByStyle.Style">
<short>Button style to use in the editor control</short>
</element>
<!-- procedure visibility: public -->
<element name="TCustomDBGrid.ResetColWidths">
<short>
Restores column widths to their default values
</short>
<descr>
<p>
<var>ResetColWidths</var> is a procedure used to restore column widths in he grid to their default values. ResetColWidths uses the value in DefaultColWidths to determine if default column widths are already in use. When DefaultColWidths contains True, no actions are performed in the method.
</p>
<p>
ResetColWidths calls the RenewColWidths method to restore the column widths. The LayoutChanged method is called to refresh the grid control after the column layouts are altered.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TCustomDBGrid.SelectedIndex">
<short>
Ordinal position of the selected column in the grid control
</short>
<descr>
<p>
<var>SelectedIndex</var> is an Integer property that represents the ordinal position of the selected column in the grid control. The property value contains the result from ColumnIndexFromGridColumn when the Columns collection is enabled in the control. Otherwise, the value from FieldIndexFromGridColumn is used as the property value.
</p>
<p>
GetSelectedIndex is the read access specifier for the property value. SetSelectedIndex is the write access specifier for the property.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TCustomDBGrid.SelectedColumn">
<short>
Represents the currently selected column in the grid control
</short>
<descr>
<p>
<var>SelectedColumn</var> is a read-only TColumn property that represents the currently selected column in the grid control. SelectedColumn contains a value only when the Columns collection has been enabled (or contains visible columns) for the control. Otherwise, SelectedColumn returns the value <var><b>Nil</b></var>.
</p>
<p>
GetCurrentColumn is the read access specifier for the property value, and returns the TColumn instance in Columns at the position specified in SelectedIndex.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibiity: private -->
<element name="TCustomDBGrid.OnFocusControl">
<short>Implements an event handler signalled when a control gets focus</short>
<descr>
<p>
<var>OnFocusControl</var> is a procedure which implements the event handler signalled when a control gets focus in the database grid. It cannot be overridden. Use the OnFocusControl property in DataLink to override the event handler.
</p>
<p>
OnFocusControl ensures that SelectedField is updated with the specified Field and calls the SetFocus method. No actions are performed if CanFocus indicates the control cannot be focused, or a column is not found for the specified Field.
</p>
</descr>
<seealso>
<link id="TFocusControlEvent">TFocusControlEvent</link>
<link id="TComponentDataLink">TComponentDataLink</link>
</seealso>
</element>
<!-- argument visibiity: default -->
<element name="TCustomDBGrid.OnFocusControl.aField">
<short>Field reference for the event</short>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.MouseMove" link="#lcl.Controls.TControl.MouseMove">
<short>
Signals the OnMouseMove event handler for the grid control
</short>
<descr>
<p>
MouseMove is an overridden procedure used to signal the OnMouseMove event handler for the grid control. MouseMove signals the OnMouseMove event handler when GridState contains the value gsSelecting, and the Dragging flag has not been set. Otherwise, the inherited MouseMove method is called in the method.
</p>
</descr>
<seealso></seealso>
</element>
<!-- procedure visibility: protected -->
<element name="TCustomDBGrid.IsValidChar">
<short>
<var>IsValidChar</var> indicates if the specified Field contains the specified UTF-8 character
</short>
<descr>
<p>
<var>IsValidChar</var> is a Boolean function that indicates if the Field specified in <var>AField</var> contains the UTF-8 encoded character in <var>AChar</var>. No action is required (or performed) when <var>AChar</var> contains a single byte character.
</p>
<p>
Please note that TField does not contain a method which verifies a Unicode character. This routine converts a multibyte Unicode character using UTF8ToSys and calls the TField.IsValidChar method to validate.
</p>
<p>
IsValidChar returns True when TField.IsValidChar returns the same or when AChar contains the <var>BackSace (Decimal 8)</var> character.
</p>
</descr>
</element>
<!-- TDBGrid starts here -->
<!-- object visibility: default -->
<element name="TDBGrid">
<short>
Data-aware grid control for display and editing rows and columns in a dataset
</short>
<descr>
<p>
<var>TDBGrid</var> is a data-aware version of <var>TStringGrid</var> used to
display and edit a Rows and Columns in a dataset.
</p>
<p>
TDBGrid inherits many of its properties from
<link id="#lcl.Grids.TCustomGrid">TCustomGrid</link> and its immediate ancestor <link id="TCustomDBGrid">TCustomDBGrid</link>.
</p>
</descr>
<seealso>
<link id="#lcl.DBCtrls.HowToUseDataAwareControls">HowToUseDataAwareControls</link>
<link id="#lcl.Grids.HowToUseGrids">HowToUseGrids</link>
</seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.Canvas" link="#lcl.Controls.TCustomControl.Canvas">
<short>
Area on the screen where various components are drawn
</short>
<descr>
<p>
Canvas is a TCanvas that represents the area of screen on which the various components are drawn.
</p>
</descr>
<seealso>
<link id="#lcl.Controls.TCustomControl.Canvas">TCustomControl.Canvas</link>
</seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.Align" link="#lcl.Controls.TControl.Align">
<short>
Indicates how the control is drawn relative to its parent
</short>
<descr>
<p>
<var>Align</var> is a TAlignment property that indicates how the control is drawn relative to its parent . Align can be used to read or write the alignment instructions for the control. The control may have no alignment or custom client alignment, or can be aligned to the top, bottom, left or right of its parent control.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.Anchors" link="#lcl.Controls.TControl.Anchors">
<descr>
<p>
Determines how the control is to be anchored to its client or parent control
</p>
<p>
Either reads a flag containing the set of anchors to be used, or writes a set of anchors. If they have been written this is indicated in <var>IsAnchorsStored</var>.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.AutoAdvance" link="#lcl.Grids.TCustomGrid.AutoAdvance">
<short>
Sets the auto advance option for the grid control
</short>
<descr>
AutoAdvance is a published property in TDBGrid which sets the option used in the grid control. The default value for the property is aaRightDown.
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.AutoFillColumns" link="#lcl.Grids.TCustomGrid.AutoFillColumns">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.BorderStyle" link="#lcl.Controls.TWinControl.BorderStyle">
<short></short>
<descr>
<remarks>
A restricted set of options are available for the grid control: bsNone or bsSingle.
</remarks>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.Color" link="#lcl.Controls.TControl.Color">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.Columns" link="#lcl.Grids.TCustomGrid.Columns">
<descr>
<p>
Refers to the physical columns of the grid displaying the contents of the relevant <var>Fields</var>.
</p>
<p>
The <var>Columns</var> property is configurable from the Object Inspector selecting the ellipsis (...) next to the property name in which case a pop-up memo box appears to allow editing. It deals with things like the size shape and format of the display and contains a link to the appropriate Field.
</p>
<p>
Do not confuse Grid columns (in the display) with the SQL usage of COLUMNS (Fields in our environment). The Fields consist of a series of cells arranged in Records which contain the actual data which are to be displayed and operated upon.
</p>
<p>
It is entirely possible that Fields in the dataset are not displayed, and the result is that Field order in a dataset may not correspond directly to the column order in a database grid; in fact the <var>Columns</var> property allows the user to configure which data Field is to be displayed in each column.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.Constraints" link="#lcl.Controls.TControl.Constraints">
<short>
Sizing constraints for the control
</short>
<descr>
<p>
<var>Constraints</var> is used to read or write values that determine the
min and max values for the height and width of the control; reads the size constraints or stores new ones.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.DataSource" link="#lcl.DBGrids.TCustomDBGrid.DataSource">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.DefaultDrawing" link="#lcl.Grids.TCustomGrid.DefaultDrawing">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.DefaultRowHeight" link="#lcl.Grids.TCustomGrid.DefaultRowHeight">
<short>
Default height for rows drawn in the grid control
</short>
<descr>
<p>
DefaultRowHeight is an Integer property that contains the default height used for rows drawn in the grid control. If new rows of the grid are created by changing the <var>RowCount</var> property, the height of these new rows will be set to the value of the <var>DefaultRowHeight</var> property.
</p>
<p>
When the <link id="TCustomGrid.DefaultRowHeight.Options">Options</link> property includes the appropriate value, the row height may be changed at run-time.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibiity: published -->
<element name="TDBGrid.DoubleBuffered" link="#lcl.Controls.TWinControl.DoubleBuffered">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibiity: published -->
<element name="TDBGrid.ParentDoubleBuffered" link="#lcl.Controls.TWinControl.ParentDoubleBuffered">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.Enabled" link="#lcl.Controls.TControl.Enabled">
<short>
Determines if the grid control is enabled for navigation and editing
</short>
<descr>
<p>
<var>Enabled</var> is a published property in TDBGrid that determines if the control is available for editing and navigation. When <var>Enabled</var> contains <var>False</var>, the control usually appears 'greyed-out' or unavailable.
</p>
<p>
Use the <var>Visible</var> property to determine whether the control is displayed or hidden.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.FixedColor" link="#lcl.Grids.TCustomGrid.FixedColor">
<short>
</short>
<descr>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.Flat" link="#lcl.Grids.TCustomGrid.Flat">
<short>
</short>
<descr>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.Font" link="#lcl.Controls.TControl.Font">
<short>
</short>
<descr>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.Options" link="#lcl.DBGrids.TCustomDBGrid.Options">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.ParentColor" link="#lcl.Controls.TControl.ParentColor">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.ParentFont" link="#lcl.Controls.TControl.ParentFont">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.PopupMenu" link="#lcl.Controls.TControl.PopupMenu">
<short></short>
<descr>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.ReadOnly" link="#lcl.DBGrids.TCustomDBGrid.ReadOnly">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.ShowHint" link="#lcl.Controls.TControl.ShowHint">
<short>
Controls whether the <var>Hint</var> is displayed for the control
</short>
<descr>
<p>
Controls whether the value in the <var>Hint</var> property is shown when the mouse hovers over the control. If a value is stored for the property a storage flag is set.
</p>
<p>
Display of the actual hint is performed by the <var>OnShowHint</var> event handler.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.TabOrder" link="#lcl.Controls.TWinControl.TabOrder">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.TabStop" link="#lcl.Controls.TWinControl.TabStop">
<descr>
<p>
Reads or writes boolean flag; default is False.
</p>
<p>
Use TabStop to allow or disallow access to the control using the Tab key.
</p>
<p>
If <var>TabStop</var> is True the control is in the tab order. If <var>TabStop</var> is False the control is not in the tab order and the user can't use the Tab key to move to the control.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.TitleFont" link="#lcl.Grids.TCustomGrid.TitleFont">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.Visible" link="#lcl.Controls.TControl.Visible">
<short>
<var>Visible</var> controls whether the grid control is visible
</short>
<descr>
<p>
The Visible property controls the ability to see a visual control. If Visible is True the control is shown otherwise it is hidden. Calling Show sets among other properties Visible to True. Setting Visible to False is equivalent to calling Hide method.
</p>
<remark>
The Visible property does not depend on control's parent visibility. Use
IsVisible method to consider this and get real visibility.
</remark>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnCellClick" link="#lcl.DBGrids.TCustomDBGrid.OnCellClick">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnColEnter" link="#lcl.DBGrids.TCustomDBGrid.OnColEnter">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnColExit" link="#lcl.DBGrids.TCustomDBGrid.OnColExit">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnColumnMoved" link="#lcl.DBGrids.TCustomDBGrid.OnColumnMoved">
<short>
</short>
<descr>
</descr>
<seealso></seealso>
</element>
<!-- property visibiity: published -->
<element name="TDBGrid.OnDrawColumnTitle" link="#lcl.DBGrids.TCustomDBGrid.OnDrawColumnTitle">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnDrawColumnCell" link="#lcl.DBGrids.TCustomDBGrid.OnDrawColumnCell">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnDblClick" link="#lcl.Controls.TControl.OnDblClick">
<descr>
<p>
Double-clicking is much more common in a Windows environment than in Unix or Linux where single-clicking is the default method for selecting an object. However, double-click is valid in all environments so a method should be supplied when appropriate.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnEditButtonClick" link="#lcl.Grids.TCustomGrid.OnEditButtonClick">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnEnter" link="#lcl.Controls.TWinControl.OnEnter">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnExit" link="#lcl.Controls.TWinControl.OnExit">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnKeyDown" link="#lcl.Controls.TWinControl.OnKeyDown">
<short>
Event handler signalled when a key is down while the control has focus
</short>
<descr>
<p>
<var>OnKeyDown</var> is a TKeyEvent event handler signalled when a key is down
while the control has focus. OnKeyDown is called from the KeyDown method when
processing keys specific to the data-aware grid.
</p>
<p>
<var>OnKeyDown</var> differs from
<link id="#lcl.Controls.TWinControl.OnKeyPress">OnKeyPress</link>. With
<var>OnKeyDown</var> the key may have already been down when the control
receives focus. With <var>OnKeyPress</var> the key needs to become pressed
while the control has focus.
</p>
</descr>
<seealso>
<link id="TDBGrid.OnKeyPress">TDBGrid.OnKeyPress</link>
<link id="TDBGrid.OnKeyUp">TDBGrid.OnKeyUp</link>
<link id="#lcl.Controls.TKeyEvent">TKeyEvent</link>
</seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnKeyPress" link="#lcl.Controls.TWinControl.OnKeyPress">
<descr>
<p>
<var>OnKeyPress</var> is an event controller for a key being pressed while the control has focus.
</p>
<p>
<var>OnKeyPress</var> differs from
<link id="#lcl.Controls.TWinControl.OnKeyDown">OnKeyDown</link> in that the key needs to become pressed while the control has focus; with <var>OnKeyDown</var> the key may have already been down when the control received focus.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnKeyUp" link="#lcl.Controls.TWinControl.OnKeyUp">
<descr>
<p>
<var>OnKeyUp</var> is an event handler for instance when a key is up (not pressed) while the control has focus
</p>
<p>
The key may already have been up when the control received focus or a pressed key may become released during the time the control has focus.
</p>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnMouseDown" link="#lcl.Controls.TControl.OnMouseDown">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnMouseMove" link="#lcl.Controls.TControl.OnMouseMove">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnMouseUp" link="#lcl.Controls.TControl.OnMouseUp">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnPrepareCanvas" link="#lcl.DBGrids.TCustomDBGrid.OnPrepareCanvas">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnTitleClick" link="#lcl.DBGrids.TCustomDBGrid.OnTitleClick">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.BorderColor" link="#lcl.Grids.TCustomGrid.BorderColor">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.DefaultTextStyle" link="#lcl.Grids.TCustomGrid.DefaultTextStyle">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.EditorBorderStyle" link="#lcl.Grids.TCustomGrid.EditorBorderStyle">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.EditorMode" link="#lcl.Grids.TCustomGrid.EditorMode">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.ExtendedColSizing" link="#lcl.Grids.TCustomGrid.ExtendedColSizing">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.FastEditing" link="#lcl.Grids.TCustomGrid.FastEditing">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.FocusColor" link="#lcl.Grids.TCustomGrid.FocusColor">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.FocusRectVisible" link="#lcl.Grids.TCustomGrid.FocusRectVisible">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.GridLineColor" link="#lcl.Grids.TCustomGrid.GridLineColor">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.GridLineStyle" link="#lcl.Grids.TCustomGrid.GridLineStyle">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.SelectedColor" link="#lcl.Grids.TCustomGrid.SelectedColor">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: public -->
<element name="TDBGrid.SelectedRows" link="#lcl.DBGrids.TCustomDBGrid.SelectedRows">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.AlternateColor" link="#lcl.Grids.TCustomGrid.AlternateColor">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.DragCursor" link="#lcl.Controls.TControl.DragCursor">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.DragMode" link="#lcl.Controls.TControl.DragMode">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.FixedHotColor" link="#lcl.Grids.TCustomGrid.FixedHotColor">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.HeaderHotZones" link="#lcl.Grids.TCustomGrid.HeaderHotZones">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.HeaderPushZones" link="#lcl.Grids.TCustomGrid.HeaderPushZones">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OptionsExtra" link="#lcl.DBGrids.TCustomDBGrid.OptionsExtra">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.Scrollbars" link="#lcl.Grids.TCustomGrid.ScrollBars">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.TitleStyle" link="#lcl.Grids.TCustomGrid.TitleStyle">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnColumnSized" link="#lcl.DBGrids.TCustomDBGrid.OnColumnSized">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnDragDrop" link="#lcl.Controls.TControl.OnDragDrop">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnDragOver" link="#lcl.Controls.TControl.OnDragOver">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnEndDrag" link="#lcl.Controls.TControl.OnEndDrag">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnFieldEditMask" link="#lcl.DBGrids.TCustomDBGrid.OnFieldEditMask">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnSelectEditor" link="#lcl.DBGrids.TCustomDBGrid.OnSelectEditor">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnStartDrag" link="#lcl.Controls.TControl.OnStartDrag">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnUserCheckboxBitmap" link="#lcl.Grids.TCustomGrid.OnUserCheckboxBitmap">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.AutoEdit" link="#lcl.Grids.TCustomGrid.AutoEdit">
<short></short>
<descr>
</descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.BorderSpacing" link="#lcl.Controls.TControl.BorderSpacing">
<short>
</short>
<descr>
</descr>
<seealso/>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.UseXORFeatures" link="#lcl.Grids.TCustomGrid.UseXORFeatures">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- property visibility: published -->
<element name="TDBGrid.OnUTF8KeyPress" link="#lcl.Controls.TWinControl.OnUTF8KeyPress">
<short></short>
<descr></descr>
<seealso></seealso>
</element>
<!-- procedure visibility: default -->
<element name="Register"/>
</module>
<!-- DBGrids -->
</package>
</fpdoc-descriptions>