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

GridHeaderCellControl Style

Thread ID:

Created:

Updated:

Platform:

Replies:

118062 Jan 27,2015 09:29 AM UTC Feb 2,2015 12:14 PM UTC WinRT 6
loading
Tags: SfDataGrid
Aurélien
Asked On January 27, 2015 09:29 AM UTC

Hello,

I would like to decrease the margin in header Cell.

I think I should use this method :

http://help.syncfusion.com/UG/winrt/default.htm#!documents/howtochangelookandfe.htm

But I can't have a copy of GridHeaderCellControlstyle .

 

In Blend, I have just : 

- Edit FilterPopUpTemplate -> create empty

- Edit HeaderTemplate -> create empty.

 

Have you a solution for me ?

Or simply a copy of GridHeaderCellControlstyle.

 

Thanks in advance,

Aurélien


Farjana Parveen Ayubb [Syncfusion]
Replied On January 28, 2015 09:32 AM UTC

Hi Aurelien,

Thank you for contacting Syncfusion support.

We have analyzed your query. We regret to inform you that we can’t able to understand your exact requirement. So, we have added the Generic GridHeaderCellControl style in ResourceDictionary, by using this you can able to customize the GridHeaderCellControl based on your requirement.

Please refer the sample in the following location:

Sample Location: SfDataGrid_HeaderCellCOntrol_in_WinRT.zip

Regards,

Farjana Parveen A



Farjana Parveen Ayubb [Syncfusion]
Replied On January 28, 2015 01:25 PM UTC

Hi Aurelien,

Regarding query: In Blend, I have just: - Edit FilterPopUpTemplate -> create empty, - Edit HeaderTemplate -> create empty.

We have considered your requirement “Edit Template in Blend“as a featureWe have added it to our feature request list and it can be tracked through our Features Management System:

http://www.syncfusion.com/support/directtrac/features/WPF-12331

Please let us know if you have any questions about this.


Regards,
Farjana Parveen A



Aurélien
Replied On January 28, 2015 02:13 PM UTC

Thanks for your answer.


I already found this sample in your sample project in Styling grid.

The problem with this sample is that it doesn’t have the section about the filtering icon style (it just has the one about sorting icon).


To summarize, the problem is the following:

My first problem is that I want to reduce the margins in the header cells but the margin property has no effect. If I override the template, the margin property works.

My question is :

-              Do you have a solution for reduce the margins in the header cells without overriding the template property.

OR

-              Do you have a complete GridHeaderCellControl style with sorting and filtering icons.

Please, find attached in the zip containing a screenshot of our headers. You can see the margins I would like to reduce.


Best regards,

Aurélien


Attachment: header_margins_b6ba45eb.zip

Farjana Parveen Ayubb [Syncfusion]
Replied On January 29, 2015 08:24 AM UTC

Hi Aurelien,

Sorry about the inconvenience caused.

We have analyzed your query. Please refer the following updates.

Query

Response

Do you have a solution for reduce the margins in the header cells without overriding the template property.

If your requirement is need to decrease the space between the text and line in HeaderCell, you have to decrease the padding value in GridHeaderCellControl. If your requirement is differ from this could you please share the exact details that will help us to provide the better solution?

Please refer the code snippet and sample in the following location:

Code Snippet:

<Style TargetType="syncfusion:GridHeaderCellControl" x:Key="headercell1">

   <Setter Property="Padding" Value="3,1,3,1" />

</ Style>

Do you have a complete GridHeaderCellControl style with sorting and filtering icons.

We provided the complete GridHeaderCellControl style.

Please refer the sample in the following location:

Sample Location: SfDataGrid_HeaderCellControl_full_style_in_WinRT.zip
Regards,

Farjana Parveen A




Aurélien
Replied On February 2, 2015 08:05 AM UTC

Thank you for the complete GridHeaderCellControl style.

It's exactly what I want.

Regards,

Aurélien


Farjana Parveen Ayubb [Syncfusion]
Replied On February 2, 2015 12:14 PM UTC

Hi Aurelien,
 
Thank you for your update. Please let us know if you require further assistance on this.
 
Regards,
Farjana Parveen A



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

;