Back to Devexpress

WebColumnBase.Name Property

aspnet-devexpress-dot-web-dot-webcolumnbase-2a4c9def.md

latest2.7 KB
Original Source

WebColumnBase.Name Property

Gets or sets the unique programmatic identifier name for a column.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public string Name { get; set; }
vb
<DefaultValue("")>
Public Property Name As String

Property Value

TypeDefaultDescription
StringString.Empty

A string value that specifies the column’s identifier.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.

aspxgridview-dataitemtemplate-runtime/CS/HyperlinkColumn/Default.aspx.cs#L47

csharp
colItemTemplate.DataItemTemplate = new MyHyperlinkTemplate(); // Create a template
colItemTemplate.Name = "colItemTemplate";
colItemTemplate.Caption = "Template Column";

aspxgridview-dataitemtemplate-runtime/VB/HyperlinkColumn/Default.aspx.vb#L42

vb
colItemTemplate.DataItemTemplate = New MyHyperlinkTemplate() ' Create a template
colItemTemplate.Name = "colItemTemplate"
colItemTemplate.Caption = "Template Column"

See Also

Accessing Columns

js-ASPxClientGridViewColumn.name

js-ASPxClientTreeListColumn.name

WebColumnBase Class

WebColumnBase Members

DevExpress.Web Namespace