Is it possible to remove the Grid Header row

Hi Support:

Is it possible to remove the grid header rom from the ASP.NET Core grid.

Thanks in advanced

David



3 Replies

MS Mani Sankar Durai Syncfusion Team January 3, 2017 12:53 PM UTC

Hi David, 
 
 
Thanks for contacting Syncfusion support. 
 
 
We can hide the Grid header using dataBound event of the Grid as shown in the following code example.  
  
 
<ej-grid id="Grid" datasource=ViewBag.data allow-paging="true" databound="databound"> 
    <e-columns> 
                  ...  
   </e-columns> 
     
</ej-grid> 
    <script type="text/javascript"> 
        function databound(args) { 
            //hide Grid header  
            this.getHeaderContent().addClass("e-hide"); 
            //add border to the content at the top  
            this.getContent().css("border-top", "1px solid #c8c8c8"); 
     } 
    </script> 
  
Refer to the following API Reference Sections.  
  
  
We have prepared a sample that can be downloaded from the following location.  
  
 
 
Please let us know if you need further assistance. 
 
 
Regards, 
Manisankar Durai  
  



DS dsapo January 3, 2017 02:21 PM UTC

Hi Manisankar :

This is perfect.

Thanks for your help.


David


MS Mani Sankar Durai Syncfusion Team January 4, 2017 09:00 AM UTC

Hi David, 

Thanks for the feedback. 

Please let us know if you need further assistance. 

Regards, 
Manisankar Durai. 


Loader.
Up arrow icon