Table of Contents

Class TwDataTableRowEdit<TItem>

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

A row a person has finished editing in a TwDataTable<TItem>, passed to RowSaved.

public sealed class TwDataTableRowEdit<TItem>

Type Parameters

TItem

The type of items displayed in the table.

Inheritance
TwDataTableRowEdit<TItem>
Inherited Members

Properties

ChangedColumns

Gets the names of the columns whose value changed.

public IEnumerable<string> ChangedColumns { get; }

Property Value

IEnumerable<string>

Item

Gets the edited row. Columns with a ValueSetter have already written their new values to it.

public TItem Item { get; }

Property Value

TItem

OriginalValues

Gets each editable column's value from before the edit, keyed by Name. Use it to undo the change if saving it elsewhere fails.

public IReadOnlyDictionary<string, object?> OriginalValues { get; }

Property Value

IReadOnlyDictionary<string, object>

Values

Gets each editable column's new value, keyed by Name.

public IReadOnlyDictionary<string, object?> Values { get; }

Property Value

IReadOnlyDictionary<string, object>