sealed class Tinman.Engine.GUI.Components.DataGrid

Derived from


A GUI component that displays a 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


public constructor DataGrid → (2)

model opt : IDataModel own = 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


public method Refresh → (1)

column in : int32

The column index.

Refreshes the content in the views for the given column.


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


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.


public attribute Model → (get,set)

value : IDataModel

The data model or null if none.

The current data model of the grid.


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



public attribute Rows → (get)

value : int32

The row count.

The number of rows in the current data model.


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).


public attribute View → (get,set)

value : IDataView

The data model or null.

The data model to view.