Skip to main content
All docs

TransformationNodeBuilder.TransformColumn(String, Boolean, Boolean) Method

Transforms a column. The transformation type depends on the specified parameters.

Namespace: DevExpress.DataAccess.DataFederation

Assembly: DevExpress.DataAccess.v22.2.dll

NuGet Package: DevExpress.DataAccess


public TransformationNodeBuilder TransformColumn(
    string columnName,
    bool unfold,
    bool flatten


Name Type Description
columnName String

The name of a column that should be transformed.

unfold Boolean

true to unfold the column; otherwise, false.

flatten Boolean

true to flatten the column; otherwise, false.


Type Description

The result of the transformation query.


The following example demonstrates how to unfold a data source’s Products array:

Show JSON Data
        "CategoryID": 1,
                "ProductName": "Chai",
                "UnitPrice": 18
                "ProductName": "Chang",
                "UnitPrice": 19
        "CategoryID": 2,
                "ProductName": "Ikura",
                "UnitPrice": 31
                "ProductName": "Konbu",
                "UnitPrice": 6
using DevExpress.DataAccess.DataFederation;
using DevExpress.DataAccess.Json;
// ...
var source = new Source("Products", jsonDataSource);

var query = source
    .TransformColumn("Products", unfold: true, flatten: false)

var federation = new FederationDataSource() {
    Queries = { query }

The following schema is the result of the transformation:

"CategoryID": int
    "ProductName": string
    "UnitPrice": int
See Also