ASPxGridViewAdaptivitySettings.AdaptiveDetailLayoutProperties Property
Provides access to the settings allowing you to customize the adaptive detail row layout.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
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 MVC Extensions | GridViewSettings |
|
ASP.NET Web Forms Controls | ASPxGridView |
|
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");