Back to Devexpress

TreeListComboBoxColumn Class

aspnet-devexpress-dot-web-dot-aspxtreelist-960513eb.md

latest3.3 KB
Original Source

TreeListComboBoxColumn Class

A data column with the combo box editor.

Namespace : DevExpress.Web.ASPxTreeList

Assembly : DevExpress.Web.ASPxTreeList.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class TreeListComboBoxColumn :
    TreeListEditDataColumn
vb
Public Class TreeListComboBoxColumn
    Inherits TreeListEditDataColumn

Remarks

The TreeListComboBoxColumn object is a data column whose values are edited by the combo box editor. Use the TreeListComboBoxColumn.PropertiesComboBox property to access and customize the column editor’s settings.

aspx
<dx:ASPxTreeList ID="ASPxTreeList1" runat="server" DataSourceID="SqlDataSource1" KeyFieldName="CustomerID" >
    <Columns>
        <dx:TreeListTextColumn FieldName="CompanyName" VisibleIndex="0" />
        <dx:TreeListComboBoxColumn FieldName="City" VisibleIndex="1">
            <PropertiesComboBox DataSourceID="SqlDataSource2" TextField="City" />
        </dx:TreeListComboBoxColumn>
    </Columns>
</dx:ASPxTreeList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="..." 
    SelectCommand="SELECT [CustomerID], [CompanyName], [City] FROM [Customers]" />
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="..." 
    SelectCommand="SELECT [City] FROM [Customers]" />

Note

The TreeListComboBoxColumn object does not support database server mode.

Concept

Data and Command Columns

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

IDataSourceViewSchemaAccessor

IWebGridColumn

IFilterablePropertyInfo

Inheritance

Object StateManager CollectionItem WebColumnBase TreeListColumn TreeListDataColumn TreeListEditDataColumn TreeListComboBoxColumn

See Also

TreeListComboBoxColumn Members

Tree List

DevExpress.Web.ASPxTreeList Namespace