Back to Devexpress

BaseColumn.Name Property

wpf-devexpress-dot-xpf-dot-grid-dot-basecolumn-5656b8e3.md

latest2.3 KB
Original Source

BaseColumn.Name Property

Gets or sets the column name.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public string Name { get; set; }
vb
Public Property Name As String

Property Value

TypeDescription
String

A string that specifies the column name.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Name property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-dock-layout-manager-save-and-restore-the-dock-layout-managers-layout/CS/MainWindow.xaml#L19

xml
<dxg:GridControl.Columns>
    <dxg:GridColumn FieldName="X" Name="columnX"/>
    <dxg:GridColumn FieldName="Y" Name="columnY"/>

how-to-prevent-certain-gridcontrols-properties-from-being-serialized-t158989/CS/WpfApplication58/MainWindow.xaml#L14

xml
<dxg:GridControl x:Name="grid">
    <dxg:GridColumn FieldName="ID" Header="ID (Width is not saved)" Name="idColumn"/>
    <dxg:GridColumn FieldName="Name" Header="Name (Width is saved)" Name="nameColumn"/>

See Also

BaseColumn Class

BaseColumn Members

DevExpress.Xpf.Grid Namespace