Skip to main content
A newer version of this page is available. .

MVCxGridViewLayoutItemCollection Class

Represents a (MVC specific) collection of layout items and groups within the FormLayout used in the GridView’s edit form.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public class MVCxGridViewLayoutItemCollection :
    GridViewLayoutItemCollection

The following members return MVCxGridViewLayoutItemCollection objects:

Remarks

The following example illustrates how to add a command item to the item collection in adaptive layout.

settings.SettingsAdaptivity.AdaptiveDetailLayoutProperties.Items.AddCommandItem("CommandColumnEdit");

The AddCommandItem(String) method gets a command column name that can be specified in the following ways:

settings.Columns.Add(new MVCxGridViewCommandColumn() { Name = "CommandColumnEdit", ShowEditButton = true, Visible = true });  

Or…

settings.CommandColumn.Visible = true;  
settings.CommandColumn.ShowEditButton = true;  
settings.CommandColumn.Name = "CommandColumnEdit";  

Implements

DevExpress.Utils.IAssignableCollection
See Also