Back to Devexpress

VerticalGridComboBoxRow Class

aspnet-devexpress-dot-web-85802b12.md

latest4.1 KB
Original Source

VerticalGridComboBoxRow Class

Represents a row with the combo box editor.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class VerticalGridComboBoxRow :
    VerticalGridEditDataRow
vb
Public Class VerticalGridComboBoxRow
    Inherits VerticalGridEditDataRow

Remarks

VerticalGridComboBoxRow objects represent rows whose values are edited using the combo box editor.

The row editor’s settings can be accessed and customized using the VerticalGridComboBoxRow.PropertiesComboBox property. Use the AutoCompleteBoxPropertiesBase.DataSourceID property, to bind the row’s combo box editor.

Run Demo: ASPxVerticalGrid - Batch Editing and Updating

aspx
<dx:VerticalGridComboBoxRow FieldName="CategoryID" Caption="Category Name">
    <PropertiesComboBox DataSourceID="CategoriesDataSource" ValueType="System.Int32" ValueField="CategoryID" TextField="CategoryName">
        <ValidationSettings Display="Dynamic" RequiredField-IsRequired="true" />
    </PropertiesComboBox>
</dx:VerticalGridComboBoxRow>

Use the AutoCompleteBoxPropertiesBase.ValueField property to specify the data source field that provides values for the combo box items. You should also specify the required data type by the ComboBoxProperties.ValueType property.

The AutoCompleteBoxPropertiesBase.TextField property specifies the data source field that provides the display text for the combo box items.

Alternatively, you can create static items for the combobox rows’ drop-down list:

aspx
<dx:VerticalGridComboBoxRow FieldName="CountryID" Caption="Country">
    <PropertiesComboBox ValueType="System.Int32">
        <Items>
            <dx:ListEditItem Text="USA" Value="1" />
            <dx:ListEditItem Text="Germany" Value="2" />
            <dx:ListEditItem Text="France" Value="3" />
            <dx:ListEditItem Text="Italy" Value="4" />
        </Items>
    </PropertiesComboBox>
</dx:VerticalGridComboBoxRow>

Note

The VerticalGridComboBoxRow object does not support database server mode.

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

IDataSourceViewSchemaAccessor

IFilterablePropertyInfo

IWebGridDataColumn

IWebGridColumn

Inheritance

Object StateManager CollectionItem WebColumnBase VerticalGridRow VerticalGridHierarchicalRow VerticalGridDataRow VerticalGridEditDataRow VerticalGridComboBoxRow

See Also

VerticalGridComboBoxRow Members

Vertical Grid

DevExpress.Web Namespace