Tab

ASPxGridViewAdaptivitySettings.AdaptiveDetailLayoutProperties Property

Provides access to the settings allowing you to customize the adaptive detail row layout.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public GridViewFormLayoutProperties AdaptiveDetailLayoutProperties { get; }
Public ReadOnly Property AdaptiveDetailLayoutProperties As GridViewFormLayoutProperties

Property Value

Type Description
GridViewFormLayoutProperties

A GridViewFormLayoutProperties object that contains layout settings.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AdaptiveDetailLayoutProperties
ASP.NET Controls and MVC Extensions ASPxGridView
.SettingsAdaptivity.AdaptiveDetailLayoutProperties
ASP.NET Bootstrap Controls BootstrapGridView
.SettingsAdaptivity.AdaptiveDetailLayoutProperties
BootstrapGridView
.SettingsAdaptivity.AdaptiveDetailLayoutProperties
ASP.NET MVC Extensions GridViewSettings
.SettingsAdaptivity.AdaptiveDetailLayoutProperties
GridViewSettings<RowType>
.SettingsAdaptivity.AdaptiveDetailLayoutProperties
MVCxGridView
.SettingsAdaptivity.AdaptiveDetailLayoutProperties

Remarks

The AdaptiveDetailLayoutProperties property allows you to customize a layout of a custom adaptive detail row (when the ASPxGridViewAdaptivitySettings.AdaptivityMode property is set to HideDataCellsWindowLimit).

Note, that settings provided by the AdaptiveDetailLayoutProperties property affect the custom layout only, i.e., items contained in the GridViewFormLayoutProperties.Items collection.

The following example illustrates how to use the AddCommandItem(String) and AddColumnItem methods to add a command and data columns.

Web Forms:

ASPxGridView.SettingsAdaptivity.AdaptiveDetailLayoutProperties.Items.AddCommandItem("CommandColumnEdit");  
ASPxGridView.SettingsAdaptivity.AdaptiveDetailLayoutProperties.Items.AddColumnItem("ProductName");  

MVC:

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

Online Demos

See Also