Back to Devexpress

ASPxComboBox.Columns Property

aspnet-devexpress-dot-web-dot-aspxcombobox-efb1253d.md

latest2.2 KB
Original Source

ASPxComboBox.Columns Property

Gets an editor’s column collection.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public ListBoxColumnCollection Columns { get; }
vb
Public ReadOnly Property Columns As ListBoxColumnCollection

Property Value

TypeDescription
ListBoxColumnCollection

A column collection within the editor.

|

Remarks

The Columns property allows you to access the editor’s column collection when the control is in data-bound mode. You can also use the index notation to add, delete, or configure columns.

aspx
<dx:ASPxComboBox ID="CmbCustomers" runat="server" DataSourceID="CustomersDataSource" 
  ValueField="CustomerID" ValueType="System.String" TextFormatString="{0}" EnableCallbackMode="true">
    <Columns>
        <dx:ListBoxColumn FieldName="ContactName" />
        <!--...-->
    </Columns>
</dx:ASPxComboBox>

Run Demo: ASPxComboBox - Multi-Column ModeView Example: Combo Box for ASP.NET Web Forms - How to get hidden column values on the client

Concepts

See Also

Columns

Combo Box

ListBoxColumn

ASPxComboBox Class

ASPxComboBox Members

DevExpress.Web Namespace