Skip to main content
Tab

CardViewComboBoxColumn Class

A data column with the combo box editor.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public class CardViewComboBoxColumn :
    CardViewEditColumn

Remarks

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

ComboBoxColumn_Bind

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.

<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.

See Also