6
votes

Is it possible to hide the first row ( the column definitions) in ag-grid? I just want to display the data in the table and excluding the column headings.

1
Set the header height to zero. There is an api method for setting header height. - Ali Beyit

1 Answers

9
votes

You can add headerHeight property on your component and set this to 0 which will hide the headers. Like so:

<ag-grid-angular [gridOptions]="gridOptions"
    [headerHeight]="0">
 </ag-grid-angular>

Take a look at this StackBlitz.