Back to Devexpress

ASPxGridViewAdaptivitySettings.AdaptivityMode Property

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

latest3.2 KB
Original Source

ASPxGridViewAdaptivitySettings.AdaptivityMode Property

Specifies the grid capability to respond to browser window resizing.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
GridViewAdaptivityModeOff

One of the GridViewAdaptivityMode enumeration values.

|

Available values:

NameDescription
Off

The adaptivity mode is disabled.

| | HideDataCells |

The grid hides columns once cell text becomes truncated.

| | HideDataCellsWindowLimit |

The grid automatically changes its layout when the browser window inner width is less than or equal to the value specified by the ASPxGridViewAdaptivitySettings.HideDataCellsAtWindowInnerWidth property.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to AdaptivityMode
ASP.NET MVC ExtensionsGridViewSettings

.SettingsAdaptivity .AdaptivityMode

| | ASP.NET Web Forms Controls | ASPxGridView |

.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

Adaptivity

ASPxGridViewAdaptivitySettings Class

ASPxGridViewAdaptivitySettings Members

DevExpress.Web Namespace