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

ASPxGridViewAdaptivitySettings Class

Contains settings that relate to the grid's adaptivity.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class ASPxGridViewAdaptivitySettings :
    ASPxGridSettingsBase
Public Class ASPxGridViewAdaptivitySettings
    Inherits ASPxGridSettingsBase

Related API Members

The following members accept/return ASPxGridViewAdaptivitySettings objects:

Remarks

ASPxGridView can automatically resize or hide grid data when the browser window is resized, allowing you to build adaptive or responsive page layouts. Use the settings provided by the ASPxGridViewAdaptivitySettings class to enable adaptivity mode and customize the adaptive layout behavior settings.

  • Responsive Layout

    When the ASPxGridViewAdaptivitySettings.AdaptivityMode property is set to HideDataCells, the grid provides a responsive layout, i.e., the grid automatically hides columns one by one when the browser window is resized and cell text becomes truncated. When a grid has hidden columns, an ellipsis button is displayed for every row. Clicking this button expands an adaptive detail row containing the hidden data.

    You can try a grid with responsive layout in the Responsive Layout online demo.

  • Adaptive Layout

    When the ASPxGridViewAdaptivitySettings.AdaptivityMode property is set to HideDataCellsWindowLimit, the grid provides an adaptive layout, i.e., the grid automatically changes its layout when the browser window's inner width is less than or equal to the value specified by the ASPxGridViewAdaptivitySettings.HideDataCellsAtWindowInnerWidth property. In this case, the control content is reordered into one column containing adaptive detail rows. The column headers are displayed above the data.

    You can try a grid with responsive layout in the Adaptive Layout online demo.

An object of the ASPxGridViewAdaptivitySettings type can be accessed by the ASPxGridView.SettingsAdaptivity property.

Implements

Inheritance

See Also