Version

SetDataSource Method

Sets the control's DataSource property to the specified value, initializing it immediately thereafter.
Syntax
'Declaration
 
Public Sub SetDataSource( _
   ByVal dataSource As Infragistics.Olap.OlapDataSource _
) 
public void SetDataSource( 
   Infragistics.Olap.OlapDataSource dataSource
)

Parameters

dataSource
The data source to assign.
Remarks

UltraPivotGrid currently only supports data sources which derive from OlapDataSource. Attempting to assign any other value, except for null, will result in an exception being thrown.

Initialization of the newly assigned data source occurs asynchronously. After assigning a data source, a request is sent to the OLAP server for retrieval of data. When the server responds, the control will display the data that was requested.

When the DataSourceInitialized event occurs, the data can also be accessed programmatically via the Rows and Columns collections.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also