(Exclusive properties, methods and events)
Please go to the renderer class TTMSFNCDataGridRenderer for more info about specific properties, methods and events not found here
TTMSFNCDataGrid
Properties
| Property |
Description |
| Header |
Provides access to the TTMSFNCDataGridHeader instance that manages the main grid header, including visual grouping and button bar. |
| Footer |
Provides access to the TTMSFNCDataGridFooter instance that manages the grid footer, including paging controls. |
| FooterPageSelector |
Returns the page selector combobox control used for selecting pages. |
| FooterPageInfo |
Returns the HTML text control displaying current page information. |
| FooterFirstPageButton |
Returns the toolbar button for navigating to the first page. |
| FooterPreviousPageButton |
Returns the toolbar button for navigating to the previous page. |
| FooterNextPageButton |
Returns the toolbar button for navigating to the next page. |
| FooterLastPageButton |
Returns the toolbar button for navigating to the last page. |
Methods
| Method |
Description |
| FirstPage |
Navigates to the first page of the dataset. |
| LastPage |
Navigates to the last page of the dataset. |
| NextPage |
Moves to the next page. Does nothing if already on the last page. |
| PreviousPage |
Moves to the previous page. Does nothing if already on the first page. |
| GoToPage(APageIndex: Integer) |
Navigates to the specified page index (0-based). |
| GoToFirstPage |
Alternative method to navigate to the first page. |
| GoToLastPage |
Alternative method to navigate to the last page. |
| GetPageIndexForRow(ARow: Integer): Integer |
Returns the page index for the specified row. |
| GetRowForPageIndex(APageIndex: Integer): Integer |
Returns the first row index for the specified page. |
| GetPageScrollSize: Integer |
Returns the number of rows per page based on current view settings. |
| GetPageScrollSizeByPageIndex(AIndex: Integer): Integer |
Returns the number of rows for a specific page index. |
Events
| Event |
Description |
| OnHeaderGroupClick |
Occurs when a grouped header is clicked. |
| OnCanDragHeaderGroup |
Occurs before the header will be dragged. |
| OnBeforeDrawHeader |
Occurs before the header is drawn. |
| OnAfterDrawHeader |
Occurs after the header is drawn. |
| OnCustomizeHeaderGroup |
Occurs when the header group is created, used for further customization. |
| OnBeforeSortHeaderGroup |
Occurs before sorting a column via a grouped header. |
| OnAfterSortHeaderGroup |
Occurs after sorting a column via a grouped header. |
| OnBeforeCloseHeaderGroup |
Occurs before a header group is closed (removed). |
| OnAfterCloseHeaderGroup |
Occurs after a header group is closed. |
| OnBeforeDropHeaderGroup |
Occurs before a header group is dropped via drag-and-drop. |
| OnAfterDropHeaderGroup |
Occurs after a header group is dropped. |
| OnBeforeDrawHeaderGroup |
Occurs before a header group is drawn. |
| OnAfterDrawHeaderGroup |
Occurs after a header group is drawn. |
| OnBeforeDrawHeaderGroupLevel |
Occurs before a visual grouping level is drawn. |
| OnAfterDrawHeaderGroupLevel |
Occurs after a visual grouping level is drawn. |
| OnBeforeDrawFooter |
Occurs before the footer is drawn. |
| OnAfterDrawFooter |
Occurs after the footer is drawn. |
| OnPageChanged |
Triggered when the current page changes. Provides the old and new page indices. |
| OnFooterPageSelectorChange |
Triggered when the user selects a different page from the page selector dropdown. |
| OnFooterFirstPageClick |
Triggered when the first page button is clicked. |
| OnFooterPreviousPageClick |
Triggered when the previous page button is clicked. |
| OnFooterNextPageClick |
Triggered when the next page button is clicked. |
| OnFooterLastPageClick |
Triggered when the last page button is clicked. |
Properties
| Property |
Description |
| VisualGrouping |
Provides access to TTMSFNCDataGridHeaderVisualGrouping, which manages visual column grouping. |
| Bar |
Provides access to TTMSFNCDataGridHeaderBar, which manages header appearance and embedded buttons. |
Properties
| Property |
Description |
| Visible |
Controls whether header visual grouping is displayed. |
| AutoSize |
Enables automatic calculation of the header visual grouping height. |
| Dragging |
Enables dragging inside the visual grouping header. |
| Size |
Specifies the height of the visual grouping header. |
| SortOnClick |
Enables sorting by clicking on a grouped header. |
| CloseIndicator |
Shows a close icon on grouped headers. |
| ConnectionLines |
Displays connector lines between grouped levels. |
| ConnectionStroke |
Stroke style for connector lines. |
| Layout |
Provides text alignment and layout options for header visual grouping. |
| LevelIndicationFill |
Fill style for normal visual grouping level indicators. |
| LevelIndicationStroke |
Stroke style for normal visual grouping level indicators. |
| LevelActiveIndicationFill |
Fill style for active visual grouping level indicators. |
| LevelActiveIndicationStroke |
Stroke style for active visual grouping level indicators. |
Properties
| Property |
Description |
| Visible |
Controls whether the main header row is visible. |
| Size |
Specifies the height of the main header. |
| Fill |
Fill style of the header background. |
| Stroke |
Stroke style of the header border. |
| Buttons |
Collection of buttons (TTMSFNCDataGridButtons) that appear in the header. |
Methods
| Method |
Description |
| Add |
Adds a new button to the collection. |
| Insert(Index) |
Inserts a new button at the specified index. |
Properties
| Property |
Description |
| Name |
Unique name for the button. |
| Text |
Text displayed on the button. |
| Hint |
Tooltip shown when hovering over the button. |
| Bitmap |
Image displayed on the button. |
| Width |
Custom width for the button. |
| Enabled |
Indicates whether the button is enabled. |
| Visible |
Indicates whether the button is visible. |
| Control |
Optional custom control hosted inside the button. |
| DataBoolean |
Optional boolean data container. |
| DataInteger |
Optional integer data container. |
| DataObject |
Optional object data container. |
| DataPointer |
Optional pointer data container. |
| DataString |
Optional string data container. |
Events
| Event |
Description |
| OnClick |
Triggered when the button is clicked. |
Properties
| Property |
Description |
| Visible |
Controls whether the footer is visible. |
| Size |
Specifies the height of the footer. |
| Fill |
Fill style of the footer background. |
| Stroke |
Stroke style of the footer border. |
| Paging |
Provides access to TTMSFNCDataGridFooterPaging, which manages paging controls in the footer. |
Properties
| Property |
Description |
| Visible |
Controls whether the paging controls are visible. Default is False. |
| Size |
Specifies the height of the paging area in pixels. Default is 30. |
| ShowPageSelector |
Shows or hides the page selector dropdown. Default is True. |
| ShowPageInfo |
Shows or hides the page information text display. Default is True. |
| ShowNavigationButtons |
Shows or hides the navigation buttons (First/Previous/Next/Last). Default is True. |
| PageSelectorWidth |
Specifies the width of the page selector dropdown. Default is 100. |
| NavigationButtonWidth |
Specifies the width of each navigation button. Default is 25. |
| PageInfoWidth |
Specifies the width of the page information text area. Default is 150. |