Table of Contents

Interface IValuesTableGrid<T>

Namespace
SunamoInterfaces.Interfaces
Assembly
SunamoInterfaces.dll

Interface for table grid operations with typed values.

public interface IValuesTableGrid<T>

Type Parameters

T

The type of values in the grid.

Extension Methods

Methods

IsAllInColumn(int, T)

Determines whether all cells in the specified column contain the specified value.

bool IsAllInColumn(int columnIndex, T value)

Parameters

columnIndex int

The column index to check.

value T

The value to check for.

Returns

bool

True if all cells in the column contain the value; otherwise, false.

IsAllInRow(int, T)

Determines whether all cells in the specified row contain the specified value.

bool IsAllInRow(int rowIndex, T value)

Parameters

rowIndex int

The row index to check.

value T

The value to check for.

Returns

bool

True if all cells in the row contain the value; otherwise, false.

SwitchRowsAndColumn()

Switches rows and columns (transposes the table).

DataTable SwitchRowsAndColumn()

Returns

DataTable

The transposed DataTable.

ToDataTable()

Converts the grid to a DataTable.

DataTable ToDataTable()

Returns

DataTable

The DataTable representation of the grid.