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

Removing headers in GridControl

I'm sure this is easy, but I've spent way too long searching for the answer with no luck.

I'm using a WPF GridControl. It comes with a single row of headers at the top and a single column of headers at the far left. I don't want my application to look like Excel; I want the leftmost column to not look like headers but to look like all the other cells. How can I do this most efficiently? 

Can I set the number of header rows to zero somehow? I suppose I could always set the width of that column to zero, but that seems inelegant as all the column indices will be off by one.

Thanks for any help you can give!

3 Replies

KR Kannan R Syncfusion Team December 4, 2012 11:45 AM UTC

Hi James,

 

Thanks for using Syncfusion products.

 

We have analyzed your query, please find our response below.

 

Query

Comments

I want the leftmost column to not look like headers but to look like all the other cells.

Please find the below code snippet to achieve your requirement.

 

 

grid.Model.HeaderColumns = 0;

 

 

 

Can I set the number of header rows to zero somehow?

Please find the below code snippet to achieve your requirement.

 

 

grid.Model.HeaderRows = 0;

 

 

 

 

We have also prepared sample based on your requirement please find it in below location.

 

Sample Location: 105911ForumSample.zip  

 

Please let us know if you have any queries.

 

Thanks,

Kannan.R



JC James Cronen December 7, 2012 04:23 PM UTC

Perfect. Thank you!


RG Rajasekar G Syncfusion Team December 13, 2012 05:26 PM UTC

Hi  James,

Thank you for your feed back.

Regards,

Raja sekar.G


Loader.
Live Chat Icon For mobile
Up arrow icon