Skip to main content
A newer version of this page is available. .

ColumnInfo.Alias Property

Specifies the alias that is used to refer to a data column instead of its name.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v18.2.dll

Declaration

[DefaultValue(null)]
public string Alias { get; set; }

Property Value

Type Default Description
String *null*

A String value, specifying the data column alias.

Remarks

Instead of addressing a column by its ColumnInfo.Name, you can assign it an Alias. The alias is used to refer to a column in calculations and summary values within the SELECT statement of a SQL string. By using aliases, it is possible to identify data columns that have similar names.

To learn whether or not a column has been assigned an alias, use the ColumnInfo.HasAlias property.

The ColumnInfo.ActualName property returns the current identifier of a data column (its name or alias).

See Also