Skip to main content
RSS feed Subscribe to feed


Skip Navigation LinksHome  Extending the Spotfire Platform  Common Tasks and Idioms  Spotfire Data  Looping Simple Type Columns

©Spotfire 2011

Looping Simple Type Columns

Code example showing how to loop through all non-binary columns and add them to a table plot.

DataColumnCollection dataColumns = tablePlot.Data.DataTableReference.Columns;

// Loop through all simple columns, that is columns not being binary,
// undefined or of a future complex type.
foreach(DataColumn column in dataColumns.FindAll(
	delegate(DataColumn col){ return col.Properties.DataType.IsSimple; }))
	// Add the column to the table plot.