We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to hide the grid header

Hi Support:

We need to hide the header of ej-grid.  

Would be possible to achieve that ?

Thanks in advanced


David

1 Reply

PK Prasanna Kumar Viswanathan Syncfusion Team January 13, 2017 08:07 AM UTC

Hi David, 

Thanks for contacting Syncfusion support. 

To hide the column header in ejGrid, use dataBound event of ejGrid. It can be achieved by using the create event where you can the grid elements at the initial state itself. Also you can get the grid header element by using the getHeaderContent method
 
Find the code example:  
 

function databound(args) {   this.getHeaderContent().hide(); 
} 


Refer to the Help document for the getHeaderContent method and dataBound event. 



If we misunderstood your query, please get back to us. 

Regards, 
Prasanna Kumar N.S.V 


Loader.
Up arrow icon