Skip to content
ConsoleMonster
Class

GridRow

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
sealed

One row of a Grid.

Inheritance

  • object
  • GridRow

Usage

Explore 14 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 5

Accepted by parameters 9

Constructors

public GridRow(object? item, params object?[] values) #

Creates a row snapshot for a grid refresh, with its original object and raw column values.

Parameters

item object? required
values object?[] required

Properties

public object? Item { get; } #

The object the row stands for.

public object Id { get; set; } #

Stable row identity, independent of the original object and display position. Defaults to a unique identity; set it before binding a refreshable listing.

public IReadOnlyList<object?> Values { get; } #

The raw column values.

Extension Methods

public static GridRow Id(GridRow gridRow, object value) #

Sets GridRow.Id: Stable row identity, independent of the original object and display position. Defaults to a unique identity; set it before binding a refreshable listing.

Parameters

gridRow ConsoleMonster.Interactive.GridRow required
The instance.
value object required
The value.

Returns

GridRow The same instance.

Examples

// C# initializer or property    // C# fluent
gridRow.Id = value;              gridRow.Id(value);