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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible to remove the Grid Header row

Thread ID:

Created:

Updated:

Platform:

Replies:

128106 Jan 3,2017 03:00 AM UTC Jan 4,2017 09:00 AM UTC ASP.NET Core 3
loading
Tags: Grid
dsapo
Asked On January 3, 2017 03:00 AM UTC

Hi Support:

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

Thanks in advanced

David



Mani Sankar Durai [Syncfusion]
Replied On 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  
  


dsapo
Replied On January 3, 2017 02:21 PM UTC

Hi Manisankar :

This is perfect.

Thanks for your help.


David

Mani Sankar Durai [Syncfusion]
Replied On 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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;