Skip to main content
RSS feed Subscribe to feed


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

©Spotfire 2011

Looping Binary Type Columns

Code example showing how to loop through all binary columns, add them to a table plot, and set a renderer.

DataColumnCollection dataColumns = tablePlot.Data.DataTableReference.Columns;

//Loop through all binary columns 
foreach(DataColumn column in dataColumns.FindAll(delegate(DataColumn col){ 
	return col.Properties.DataType.Equals(DataType.Binary); }))
	// Add the binary column to the table plot

	// Since we know the binary data is png we set the built in BitmapRenderer.
	tablePlot.TableColumns.SetValueRenderer(column, ValueRendererTypeIdentifiers.BitmapRenderer);