DataGrid

Description

sealed class Tinman.Engine.GUI.Components.DataGrid

Derived from

Container

A GUI component that displays an IDataModel via a given IDataView object.

The following default Layout settings are defined for DataGrid objects:

The following styles are set in the constructor:

Public / Constructors

DataGrid


public constructor DataGrid → (2)

model opt : IDataModel = null

The initial data model or null.

view opt : IDataView = null

The initial data view or null.

Creates a new instance of DataGrid.

Public / Methods

Refresh


public method Refresh → (1)

column in : int32

[0..DataGrid.View.Columns-1]
The column index.

Refreshes the content in the views for the given column.

SelectFirst


public method SelectFirst → ()

returns → bool

true if the first top-level item has been selected and will be returned by SelectedPath,
false if the currently selected item is the first top-level item or if there is not selection.

Selects the first top-level item.

Public / Attributes

Flat


public attribute Flat → (get,set)

value : bool

true to use flat list mode,
false to use hierarchical tree mode.

Use flat list mode instead of hierarchical tree mode?

Defaults to false.

Model


[OwnerValue]
public attribute Model → (get,set)

value : IDataModel

The data model or null if none.

The current data model of the grid.

Pane


public attribute Pane → (get)

value : IDataGridPane

The root node or null iff no model has been set.

Returns the visual grid pane for the root data model.

See also

DataGrid.Model

Rows


public attribute Rows → (get)

value : int32

[>=0]
The row count.

The number of rows in the current data model.

SelectedPath


public attribute SelectedPath → (get,set)

value : DataGridPath

The selection path or null for no selection.

The selection path.

Alternatively, the selection path may be set by setting the selected row in a visual pane (see Pane).

View


public attribute View → (get,set)

value : IDataView

The data model or null.

The data model to view.