Skip to main content

SalTableRowCollection

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Runtime.50 (5.0.0.0)

Exposes the nonfixed data rows of a ComponentOne grid as SAL row objects.

public class SalTableRowCollection : IList, ICollection, IEnumerable, IEnumerable<SalTableRow>

IList insertion, removal, clearing, and indexer assignment are unsupported; use the table or row operations to change rows.

Example:

void SelectRows(PPJ.Runtime.Windows.SalTableRowCollection rows)
{
foreach (PPJ.Runtime.Windows.SalTableRow row in rows)
row.Selected = true;
}

Constructors

Instance member SalTableRowCollection(grid)

Creates a live row view over a grid.

NameTypeDescription
gridC1FlexGridThe non-null grid whose nonfixed rows are exposed.

Properties

Instance member Count

Int32: Gets the grid row count excluding fixed rows.

Instance member Item(index)

SalTableRow: Gets a row by its zero-based data-row index, excluding fixed grid rows.

Methods

Instance member Contains(row)

Checks whether a row belongs to the underlying grid row collection.

ParameterTypeDescription
rowSalTableRowThe non-null row to find.

Returns: Boolean. True when its grid row is present; otherwise, false.

Instance member CopyTo(array, index)

Copies rows starting at the specified source index into the same indices of an array.

ParameterTypeDescription
arrayArrayThe destination array, large enough to hold entries through Count minus one.
indexInt32The first source and destination index to copy.

This implementation skips preceding source rows instead of offsetting a copy of the entire collection.

Instance member IndexOf(row)

Finds the data-row index of a SAL row wrapper.

ParameterTypeDescription
rowSalTableRowThe row to find.

Returns: Int32. The zero-based index, or -1 when absent.