Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If a multi-dimensional data source has only one row of data, the automatic repeating behavior will not occur. This is consistent for any of the multi-dimensional data sources supported by BindData:

  • Jagged and multi-dimensional arrays
  • Custom objects (IEnumerable<T>)
  • System.

...

  • IDataReader and System.DataTable

Setting MaxRowsToImport to 1

MaxRowsToImport is a data binding property on the DataBindingProperties object that can be used to control limit the number of rows that are imported, regardless of how many rows of data to import from are actually in the data set. When using data sources other than a single dimensional array, a single row of data can be imported by setting MaxRowsToImport to 1.source.

Code Block
csharp
csharp
titleSetting the MaxRowsToImport Property
DataBindingProperties DataProps = pptt.DataBindingProperties();
DataProps.MaxRowsToImport = 1;

For more information about importing data from different data sources see Importing Multiple Rows of Data.