Back to Devexpress

ASPxGridViewAdaptivitySettings.AdaptiveDetailLayoutProperties Property

aspnet-devexpress-dot-web-dot-aspxgridviewadaptivitysettings-6e4606f6.md

latest3.6 KB
Original Source

ASPxGridViewAdaptivitySettings.AdaptiveDetailLayoutProperties Property

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

Declaration

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

Property Value

TypeDescription
GridViewFormLayoutProperties

A GridViewFormLayoutProperties object that contains layout settings.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to AdaptiveDetailLayoutProperties
ASP.NET MVC ExtensionsGridViewSettings

.SettingsAdaptivity .AdaptiveDetailLayoutProperties

| | ASP.NET Web Forms Controls | ASPxGridView |

.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:

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

MVC:

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

Online Demos

See Also

Adaptivity

ASPxGridViewAdaptivitySettings Class

ASPxGridViewAdaptivitySettings Members

DevExpress.Web Namespace