Frozen Header

24 May 20191 minute to read

Allows you to freeze the header of the Grid so that it will be always visible when scrolling the content with a large number of rows or columns providing a precise view.

  • CSHTML
  • @Html.EJ().Pivot().PivotGrid("PivotGrid1").DataSource(.....).FrozenHeaderSettings(frohead => frohead.EnableFrozenHeaders(true))

    Frozen header, aka Freeze headers support in ASP NET MVC pivot grid control

    We can also freeze the row/column headers individually by setting the below properties.

  • CSHTML
  • @Html.EJ().Pivot().PivotGrid("PivotGrid1").DataSource(.....).FrozenHeaderSettings(frohead => frohead.EnableFrozenRowHeaders(true))  //To Freeze the Row headers

    Frozen row headers in ASP NET MVC pivot grid control

  • CSHTML
  • @Html.EJ().Pivot().PivotGrid("PivotGrid1").DataSource(.....).FrozenHeaderSettings(frohead => frohead.EnableFrozenColumnHeaders(true))  //To Freeze the Column headers

    Frozen column headers in ASP NET MVC pivot grid control

    We can also set the size of the scroller (horizontal and vertical) in PivotGrid by using below property.

  • CSHTML
  • @Html.EJ().Pivot().PivotGrid("PivotGrid1").DataSource(.....).FrozenHeaderSettings(frohead => frohead.ScrollerSize(18))

    Scroller size in ASP NET MVC pivot grid control