aspnet-devexpress-dot-web-dot-aspxgridviewadaptivitysettings-6e4606f6.md
Provides access to the settings allowing you to customize the adaptive detail row layout.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public GridViewFormLayoutProperties AdaptiveDetailLayoutProperties { get; }
Public ReadOnly Property AdaptiveDetailLayoutProperties As GridViewFormLayoutProperties
| Type | Description |
|---|---|
| GridViewFormLayoutProperties |
A GridViewFormLayoutProperties object that contains layout settings.
|
You can access this nested property as listed below:
| Library | Object Type | Path to AdaptiveDetailLayoutProperties |
|---|---|---|
| ASP.NET MVC Extensions | GridViewSettings |
.SettingsAdaptivity .AdaptiveDetailLayoutProperties
| | ASP.NET Web Forms Controls | ASPxGridView |
.SettingsAdaptivity .AdaptiveDetailLayoutProperties
|
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");
See Also
ASPxGridViewAdaptivitySettings Class