Interface IValuesTableGrid<T>
- Namespace
- SunamoInterfaces.Interfaces
- Assembly
- SunamoInterfaces.dll
Interface for table grid operations with typed values.
public interface IValuesTableGrid<T>
Type Parameters
TThe 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
columnIndexintThe column index to check.
valueTThe 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
rowIndexintThe row index to check.
valueTThe 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.