PivotGridControl.CreateOlapDrillDownDataSourceAsync(Int32, Int32, Int32, List<String>, AsyncCompletedHandler) Method
In OLAP mode, returns a list of records used to calculate a summary value for the specified cell asynchronously. Allows you to specify the columns and limit the number of records to be returned.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll
#Declaration
public void CreateOlapDrillDownDataSourceAsync(
int columnIndex,
int rowIndex,
int maxRowCount,
List<string> customColumns,
AsyncCompletedHandler asyncCompleted
)
#Parameters
Name | Type | Description |
---|---|---|
column |
Int32 | A zero-based integer which identifies the visible index of the column. |
row |
Int32 | A zero-based integer which identifies the visible index of the row. |
max |
Int32 | An integer value that specifies the maximum number of data rows to be returned. -1 to retrieve all rows. |
custom |
List<String> | A list of columns to be returned. |
async |
Async |
An Async |
#Remarks
The CreateOlapDrillDownDataSourceAsync method is asynchronous. It starts executing the related operation in a background thread, and immediately returns control. The primary UI thread is not blocked, allowing the application to continue responding to end-user actions. For more information about the asynchronous mode, see Asynchronous Mode.
The drill-down data source (a PivotDrillDownDataSource instance) is passed to the asyncCompleted delegate via the result parameter. This parameter returns an AsyncOperationResult instance. Use the AsyncOperationResult.Value property to obtain the drill-down data source.
To obtain a drill-down data source in OLAP mode synchronously, use the PivotGridControl.CreateOlapDrillDownDataSource method.
To obtain the name of a column in a data source to which a pivot field corresponds, use the field's PivotGridField.OlapDrillDownColumnName property.
NOTE
For MS SQL Server Analysis Services 2000, the custom
NOTE
A note for MS SQL Server Analysis Services 2005 and 2008. If the custom
NOTE
If a filter is applied to a field, then that filter is taken into account if the corresponding drill-down column was returned from the server by the Create
NOTE
The Create
NOTE
If multiple filter items are selected in a Filter Field, the drill-down data source cannot be created due to an MS SQL Server Analysis Services limitation. In this instance, the Create