Skip to main content

GridColumnEditorPropertiesFactory.ComboBox(Action<MVCxColumnComboBoxProperties>) Method

Allows you to configure a combo box column.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public void ComboBox(
    Action<MVCxColumnComboBoxProperties> method
)

Parameters

Name Type Description
method Action<MVCxColumnComboBoxProperties>

A delegate method that accepts an MVCxColumnComboBoxProperties object as a parameter.

Remarks

settings.Columns.Add(column => {
     column.FieldName = "CategoryID";
     column.Caption = "Category";
     column.EditorProperties().ComboBox(p => {
          p.DataSource = NorthwindDataProvider.GetCategories();
          p.TextField = "CategoryName";
          p.ValueField = "CategoryID";
          p.ValueType = typeof(int);
     });
});
See Also