ASPxGridViewAdaptivitySettings.AdaptivityMode Property
Specifies the grid capability to respond to browser window resizing.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
[DefaultValue(GridViewAdaptivityMode.Off)]
public GridViewAdaptivityMode AdaptivityMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Grid |
Off | One of the Grid |
Available values:
Name | Description |
---|---|
Off | The adaptivity mode is disabled. |
Hide |
The grid hides columns once cell text becomes truncated. |
Hide |
The grid automatically changes its layout when the browser window inner width is less than or equal to the value specified by the ASPx |
#Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to Adaptivity |
---|---|---|
ASP. |
Grid |
|
ASP. |
ASPx |
|
#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 Hide
Data mode doesn’t work if column resizing is enabled.Cells - Neither adaptive mode works if horizontal scrolling is enabled.
Note
The grid’s width should be set to 100% to make the grid responsive.