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

PivotGridControl and DisplyName from System.ComponentModel.DataAnnotations

Good morning,

why does Pivot Grid not consider the property [DisplayName("")] (from System.ComponentModel.DataAnnotations ) set in properties? 

For example:

[DisplayName("Produkt Kontraktowy")]

public decimal ProductName { get; set; }

Unfortunately, the display name must be set in the pivot Grid itself. However, it does not take it into account, for example, when displaying a list of fields in PivotSchemaDesigner it's showing ProductName insted "Produkt Kontraktowy". I have to change name of the properites to  public decimal Produkt_Kontraktowy { get; set; } to get what i want.

In English, this may not be a problem, but if you write the code in English, but display the names of the user-specific fields in the native language, it is already a huge problem.

1 Reply

DM Dhanasekar Mohanraj Syncfusion Team April 12, 2023 02:00 PM UTC

Hi Piotr,

Currently, PivotGrid does not have support for the DisplayName attribute to change the Filedeader. We have analyzed and considered your requirement of “Provide the support to change the FiledHeader by using the DisplayNameAttribute” in PivotGrid and logged a feature request for the same. We will implement this feature in any of our upcoming releases.

At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience until then.

Thank you for requesting this feature and helping us define it. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.

Feedback link: https://www.syncfusion.com/feedback/40555/provide-the-support-to-change-the-filed-table-list-name-by-using-the

If you have any more specifications/suggestions for the feature request, you can add them as a comment in the portal and cast your vote to make it count.

Live Chat Icon For mobile
Up arrow icon