Skip to main content

SelectQuery.SelectColumn(Table, String, AggregationType, String) Method

Selects a specified column from a required data table by specifying an aggregate function and column alias.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v24.1.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap

Declaration

public Column SelectColumn(
    Table table,
    string columnName,
    AggregationType aggregate,
    string alias
)

Parameters

Name Type Description
table Table

A Table to which the obtained column belongs.

columnName String

A String value, specifying the column name.

aggregate AggregationType

An AggregationType enumeration value.

alias String

A String value, specifying the column alias.

Returns

Type Description
Column

A Column object.

See Also