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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Removing headers in GridControl

Thread ID:

Created:

Updated:

Platform:

Replies:

105911 Nov 27,2012 10:56 PM UTC Dec 13,2012 05:26 PM UTC WPF 3
loading
Tags: GridControl
James Cronen
Asked On November 27, 2012 10:56 PM UTC

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!

Kannan R [Syncfusion]
Replied On 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


James Cronen
Replied On December 7, 2012 04:23 PM UTC

Perfect. Thank you!

Rajasekar G [Syncfusion]
Replied On December 13, 2012 05:26 PM UTC

Hi  James,

Thank you for your feed back.

Regards,

Raja sekar.G


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

;