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
close icon

SfCellGrid - remove header

I created cell grid and filled it with data. now i want to delete header which is moving with scrolling.
i set HeaderColumns = 0;
            HeaderRows = 0;

but this doesnt work.

How can i remove header?

Thank you

1 Reply

KB Kanimozhi Bharathi Syncfusion Team February 7, 2017 10:29 AM UTC

Hi Oto Dusek,   
   
Thank you for contacting Syncfusion Support.   
   
We have checked your query. As you have not clearly mentioned whether you are using GridControl of WPF platform or SfCellGrid of UWP platform, we have provided the solutions for the two controls. Please find the solution in the below table,   
   
Control   
Response   
GridControl(WPF platform)   
   
   
You can remove the headers in GridControl by setting HeaderRows/HeaderColumns and FrozenRows/FrozenColumns as “0” like below code example,   
   
grid.Model.HeaderRows = 0;   
grid.Model.HeaderColumns = 0;   
grid.Model.FrozenColumns= 0; 
grid.Model.FrozenRows = 0;   
   
We have also prepared a sample for your reference, please find the sample link below,   
   
   
   
   
SfCellGrid(UWP platform)   
You can remove the headers in SfCellGrid by setting HeaderRows/HeaderColumns and FrozenRows/FrozenColumns as “0” like below code example   
   
cellgrid.HeaderColumns = 0;   
cellgrid.HeaderRows = 0;   
cellgrid.FrozenRows = 0;   
cellgrid.FrozenColumns = 0;   
   
   
We have also prepared a sample for your reference, please find the sample link below,   
   
   
   
  
   
   
Please let us know if you need further clarifications.   
   
Regards   
Kanimozhi B   


Loader.
Live Chat Icon For mobile
Up arrow icon