Tab
A newer version of this page is available. Switch to the current version.

ASPxGridViewAdaptivitySettings.AdaptivityMode Property

Specifies the grid capability to respond to browser window resizing.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(GridViewAdaptivityMode.Off)]
public GridViewAdaptivityMode AdaptivityMode { get; set; }
<DefaultValue(GridViewAdaptivityMode.Off)>
Public Property AdaptivityMode As GridViewAdaptivityMode

Property Value

Type Default Description
GridViewAdaptivityMode

Off

One of the GridViewAdaptivityMode enumeration values.

Property Paths

You can access this nested property as listed below:

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

Remarks

ASPxGridView can automatically resize, rearrange, or hide grid data when the browser window is resized. Use the AdaptivityMode property to provide the grid with an adaptive or responsive page layout.

IMPORTANT
  • The HideDataCells mode doesn't work if column resizing is enabled.
  • Neither adaptive mode works if horizontal scrolling is enabled.
NOTE

The grid's width should be set to 100% to make the grid responsive.

Online Demos

See Also