简体   繁体   中英

How to hide column header in Ag-grid?

In my vue.js application, I have a requirement where I want to hide the column headers in the ag-grid but want to display the rows.

I used below property to hide the column headers.

headerHeight: 0

with this I can able to hide the column headers but still the line separator between header and first row is visible. How can I add hide the separator line as well?

You can achieve it by tweaking the ag-header style along with the headerHeight .

In ag-grid template :

:headerHeight="0"

In CSS side :

.ag-header {
  border-bottom: 0px !important
}

Working Plunker : Hide ag-grid column header

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM