Skip to content

DevExpress-Examples/devextreme-datagrid-sticky-headers

Repository files navigation

DataGrid for DevExtreme - How to implement sticky headers

This example demonstrates how to implement sticky headers for a DataGrid component.

Screenshot 2023-11-28 174740

To implement sticky headers, you need to modify the DataGrid's stylesheet. Apply the following attributes to the CSS class .dx-datagrid-headers:

  • position: sticky
  • z-index: 1000
  .dx-datagrid .dx-datagrid-headers{
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This example demonstrates how to implement sticky headers for DataGrid.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 18