cancel
Showing results for 
Search instead for 
Did you mean: 

Remove header from sap.ui.table.Column

former_member595374
Participant

I've had success setting the column header label as "" but I am unable to completly remove the header. I just want cells to be displayed. Is this possible?

Accepted Solutions (1)

Accepted Solutions (1)

boghyon
Product and Topic Expert
Product and Topic Expert

The grid table has a property called `columnHeaderVisible`. Set it to false.

<Table xmlns="sap.ui.table"
columnHeaderVisible="false"

API Reference: https://ui5.sap.com/#/api/sap.ui.table.Table/methods/setColumnHeaderVisible

Answers (1)

Answers (1)

junwu
Active Contributor

var that=this;
this.mytable=this.byId('mytable');
this.mytable.addEventDelegate({
onAfterRendering: function(){

that.mytable.$().find(".sapUiTableColHdrCnt").css("visibility", "hidden")

}
});