Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

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.Web.Internal.IStateManagerTracker
DevExpress.Web.Internal.IPropertiesDirtyTracker
DevExpress.Utils.IAssignableCollection
See Also