Back to Devexpress

CardViewComboBoxColumn Class

aspnet-devexpress-dot-web-5eb436e1.md

latest3.8 KB
Original Source

CardViewComboBoxColumn Class

A data column with the combo box editor.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class CardViewComboBoxColumn :
    CardViewEditColumn
vb
Public Class CardViewComboBoxColumn
    Inherits CardViewEditColumn

Remarks

The CardViewComboBoxColumn objects are data columns whose values are edited by the combo box editor.

Use the CardViewComboBoxColumn.PropertiesComboBox property to access and customize the column editor’s settings.

Note

The CardViewComboBoxColumn object does not support database server mode.

Example

For a full example, see Card View - Batch Editing and Updating demo.

aspx
<dx:ASPxCardView ID="CardView" runat="server" DataSourceID="DemoDataSource1" ClientInstanceName="CardView" KeyFieldName="ProductID" Width="100%">
     <Columns>
          <dx:CardViewTextColumn FieldName="ProductName">
               <PropertiesTextEdit>
                    <ValidationSettings Display="Dynamic" RequiredField-IsRequired="true" />
               </PropertiesTextEdit>
          </dx:CardViewTextColumn>
          <dx:CardViewComboBoxColumn FieldName="CategoryID" Caption="Category Name">
               <PropertiesComboBox DataSourceID="CategoriesDataSource" ValueType="System.Int32" ValueField="CategoryID" TextField="CategoryName" />
          </dx:CardViewComboBoxColumn>
          <dx:CardViewTextColumn FieldName="QuantityPerUnit" />
          <dx:CardViewSpinEditColumn FieldName="UnitPrice">
               <PropertiesSpinEdit DisplayFormatString="c">
                    <ValidationSettings RequiredField-IsRequired="true" Display="Dynamic" />
               </PropertiesSpinEdit>
          </dx:CardViewSpinEditColumn>
          <dx:CardViewSpinEditColumn FieldName="UnitsInStock" />
          <dx:CardViewCheckColumn FieldName="Discontinued" />
     </Columns>
     <SettingsEditing Mode="Batch" />
     <SettingsPager EnableAdaptivity="true">
          <SettingsTableLayout RowsPerPage="2" />
     </SettingsPager>
</dx:ASPxCardView>

To learn more, see Data Columns.

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

IWebGridDataColumn

IWebGridColumn

IFilterablePropertyInfo

IDataSourceViewSchemaAccessor

Inheritance

Object StateManager CollectionItem WebColumnBase CardViewColumn CardViewEditColumn CardViewComboBoxColumn

See Also

CardViewComboBoxColumn Members

Card View

DevExpress.Web Namespace