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

DisplayName attribute not working

Thread ID:





118128 Feb 3,2015 01:51 PM UTC Feb 6,2015 05:42 AM UTC WinForms 4
Tags: GridDataBoundGrid(Classic)
Asked On February 3, 2015 01:51 PM UTC

My simple customer class:
class Customer
    [DisplayName("Customer Name")]
    public string Name { get; private set; }

    public Customer(string name)
        Name = name;

And the binding logic on a Form control, which contains GridDataBound control:
public partial class Form1 : Form
    private readonly List<Customer> _customers;

    public Form1()

        _customers = new List<Customer>();
        gridDataBoundGrid1.DataSource = _customers;

    private void BtnAddCustomer(object sender, EventArgs e)
        _customers.Add(new Customer("Customer 1"));

If I run my application the first column in the grid is named 'Name' instead of 'Customer Name'. Is DisplayName attribute supported?

Replied On February 3, 2015 01:59 PM UTC

A possible workaround:

this.gridDataBoundGrid1.Binder.InternalColumns["Name"].HeaderText = "Customer Name";

Muthukumar Kalyanasundaram [Syncfusion]
Replied On February 4, 2015 05:37 PM UTC

Hi Simon,


Thanks for using Syncfusion products.


The reported issue with “DisplayName attribute not working" has been confirmed as a defect. We have logged a bug report on this reported query. For this, Please create a DT incident for your query so that we can update the patch for this issue.


You can create the DT incident from the following link.



In the interests of maintaining confidentiality, we have a policy of not sharing patches or otherwise proprietary customer specific information in the public Forum.


Please let me know your concerns.



Muthukumar K.

Replied On February 5, 2015 01:00 PM UTC

Muthukumar Kalyanasundaram [Syncfusion]
Replied On February 6, 2015 05:42 AM UTC

Hi Simon,


Thank you for update.


We will update details for your reported query in that incident 134974. Please refer the incident for better follow up. Please let us know if you need any further assistance.



Muthukumar K


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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