Table

Table

Class Reference

DTNET.Table inherits from Control

Properties

AutoWidth

Type: Bool
Default: true

Columns[]

Definitions to control visibility and formatting of columns.

CompactScroll

Type: Bool
Default: false

Dataset

Type: DatasetRef
Default: ''

PageControls

Type: Enum
Default: SimpleWithNumbers
Values: Simple, SimpleWithNumbers, Numbers, Full, FullWithNumbers, FirstLastWithNumbers

Specifies type of page controls to be displayed. Only visible if .RowsPerPage > 0.

RowsPerPage

Type: Int
Default: 0

Specifies how many rows per page to display. 0 disables paging and will display all rows.

ScrollHeight

Type: Size
Default: ''

ScrollHorizontal

Type: Bool
Default: false

SearchDelay

Type: Int
Default: 0

SearchIgnoreCase

Type: Bool
Default: true

Determines if searching is case sensitive or not.

SelectMode

Type: Enum
Default: None
Values: None, Single, Multiple, Cursor

Specifies selection mode:

  • None: No selection
  • Single: Single selection
  • Multiple: Multiple selection
  • Cursor: Cursor syncrhonized selection. Changes to the cursor will change selection in the table, and selection in the table will move the cursor. In this mode, .SelectWhat will be forced to Row.

SelectWhat

Type: Enum
Default: Row
Values: Row, Column, Cell

SelectedIndex

Type: Int
Default: -1

SelectedKey

Type: String
Default: ''

ShowInformation

Type: Bool
Default: true

ShowSearch

Type: Bool
Default: true

Enables or disables the search box.

SmartSearch

Type: Bool
Default: true

Sorting

Type: Bool
Default: true

StartRow

Type: Int
Default: 0

UserCanSetPageSize

Type: Bool
Default: true

Events

Selected

Selected is fired when the selection in the grid changes. The selectino depends on the .SelectMode property.