DkGrid
  • Overview
  • Getting Started
    • Quick Start Tutorial
  • Fundamentals
    • Grid Structure
      • Grid Size
      • Header
      • Row Filter
      • Rows
      • Panels
      • Gutters
      • Edition Toolbar
      • Paginator
      • Borders
      • Column Context Menu
      • Waiting Indicator
    • DataSource
      • In-Memory DataSource
      • Custom DataSource
    • Theming
  • Columns
    • Column Definitions
    • Column Grouping
    • Column Sizing
    • Column Moving
    • Column Pinning
  • Rows
    • Row Sorting
    • Row Selection
    • Row Grouping
    • Row Pagination
  • Filtering
    • Column Filters
    • Filter types
    • In-line Filters
  • Editing
    • Row Edition
    • Edition templates
    • Edition validation
    • Multiple rows edition
  • Reference
    • DkGrid API
      • DkGridColumnDef
      • DkGridSorting
      • DkGridSelection
      • DkGridRowGrouping
      • DkGridPagination
      • DkGridWaitingIndicator
      • DkGridFactoryDataSource
      • DkGridFilter
      • DkGridEdition
    • Components
      • DkGridComponent
      • DkGridColumnComponent
    • Classes
      • DataSource
      • Columns
      • Rows
      • Filtering
      • Editing
    • Interfaces
      • Columns
      • Sorting
      • Row Grouping
      • Filtering
      • Editing
    • Injection Tokens
      • Grid Structure
      • Filtering
      • Editing
      • Theming
    • Type aliases
      • DataSource
      • Columns
      • Selection
      • Filtering
      • Editing
    • Type Guards
Powered by GitBook
On this page
  • Header Row
  • Changing the Header Row height
  • Column Groups
  1. Fundamentals
  2. Grid Structure

Header

Since the DikeGrid structure definition uses the CSS Grid Layout specification, as a convention, the Header is also called Header Row.

PreviousGrid SizeNextRow Filter

Last updated 3 years ago

Header Row

The Header Row of the DikeGrid is composed of all the column headers.

This initial setup generates the following output:

As you can see, the Header Row occupies the entire horizontal extension of the DikeGrid instance.

The highlighted Header Row represents only one column definition in the CSS Grid Layout specification. Therefore, the DikeGrid CSS Grid Layout will have three template columns when defining columns in all panels of the DikeGrid.

Inside the Header Row comes the actual column headers definitions. The Header Row uses a nested CSS Grid Layout grid.

Changing the Header Row height

By default, the column headers will have a height of 60 pixels. However, you can change this height by providing a numeric value to the input property called headerRowHeight.

grid-structure.component.html
<dike-grid id="grid-structure"
    [headerRowHeight]="gridProperties.headerHeight">
</dike-grid>

You can also change the height of the Header by providing the Injection Token called HEADER_ROW_HEIGHT.

In the previous code snippet, we added the headerRowHeight property to the DikeGrid instance and was bound to the gridProperties object.

Column Groups

Be aware that the Header Row height will be present in every level when grouping columns. Therefore, the total size of the DikeGrid Header will be the sum of every nested group.

Let us define a group named Complete Name. This group will have two child columns: Name and Surname columns.

grid-structure.component.html
<dike-grid>
    <dike-grid-column
        fieldName="completeNameGroup"
        headerText="Complete Name">

        <dike-grid-column
            fieldName="firstName"
            headerText="Name"
            dataType="Text">
        </dike-grid-column>

        <dike-grid-column
            fieldName="lastName"
            headerText="Surname"
            dataType="Text">
        </dike-grid-column>
    </dike-grid-column>
</dike-grid>

See the for more details.

Open the , go to the Header group, and type 120 in the Header Height textbox.

For further details about groups, see .

Panels' structure
Column Grouping
Header Row
Column Headers definition
Floating Configuration Panel - Header
Changing the Header Row height
Header Row Height - Column Groups
Floating Configuration Panel