DataTableGetRows Method (IEnumerableInt32, DataValueCursor) TIBCO Spotfire 7.6 API Reference
Enumerates a subset of the rows for the columns specified by the given
valueCursors
s.

Namespace: Spotfire.Dxp.Data
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 25.11.10401.3615 (25.11.10401.3615)
Syntax

C#
public IEnumerable<DataRow> GetRows(
	IEnumerable<int> rowIndexes,
	params DataValueCursor[] valueCursors
)

Parameters

rowIndexes
Type: System.Collections.GenericIEnumerableInt32
The row indexes to enumerate.
valueCursors
Type: Spotfire.Dxp.DataDataValueCursor
Specifies what columns to include in the enumeration and are used to access the individual data values for each row.

Return Value

Type: IEnumerableDataRow
An enumeration of the rows in the subset.
Examples

DataTable table;
DataValueCursor<int> cursor1 = DataValueCursor.Create<int>(table.Columns["Column1"]);
DataValueCursor<double> cursor2 = DataValueCursor.CreateNumeric(table.Columns["Column2"]);
DataValueCursor<string> cursor3 = DataValueCursor.CreateFormatted(table.Columns["Column3"]);
DataSelection selection;

foreach (DataRow row in table.GetRows(selection, cursor1, cursor2, cursor3)) 
{
  int rowIndex = row.Index;
  int value1 = cursor1.CurrentValue;
  double value2 = cursor2.CurrentValue;
  string value3 = cursor3.CurrentValue;
  DoSomething(rowIndex, value1, value2, value3);
}
Version Information

Supported in: 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference