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.
- C#
- VB.NET
public class SalTableRowCollection : IList, ICollection, IEnumerable, IEnumerable<SalTableRow>
Public Class SalTableRowCollection
Inherits IList
Implements ICollection, IEnumerable, IEnumerable(Of 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
SalTableRowCollection(grid)
Creates a live row view over a grid.
| Name | Type | Description |
|---|---|---|
| grid | C1FlexGrid | The non-null grid whose nonfixed rows are exposed. |
Properties
Count
Int32: Gets the grid row count excluding fixed rows.
Item(index)
SalTableRow: Gets a row by its zero-based data-row index, excluding fixed grid rows.
Methods
Contains(row)
Checks whether a row belongs to the underlying grid row collection.
| Parameter | Type | Description |
|---|---|---|
| row | SalTableRow | The non-null row to find. |
Returns: Boolean. True when its grid row is present; otherwise, false.
CopyTo(array, index)
Copies rows starting at the specified source index into the same indices of an array.
| Parameter | Type | Description |
|---|---|---|
| array | Array | The destination array, large enough to hold entries through Count minus one. |
| index | Int32 | The first source and destination index to copy. |
This implementation skips preceding source rows instead of offsetting a copy of the entire collection.
IndexOf(row)
Finds the data-row index of a SAL row wrapper.
| Parameter | Type | Description |
|---|---|---|
| row | SalTableRow | The row to find. |
Returns: Int32. The zero-based index, or -1 when absent.