Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 2.05 KB

File metadata and controls

41 lines (31 loc) · 2.05 KB

Winforms Property Grid - Property display name localization

This example applies the System.ComponentModel.DisplayName attribute to properties to enable localization:

Winforms Property Grid - Property display name localization

public class Product {
    // ...
    [CustomDisplayNameAttribute("ProductCode")]
    public string ProductCode {
        get { return productCode; }
        set { productCode = value; }
    }
    [CustomDisplayNameAttribute("Name")]
    public string Name {
        get { return name; }
        set { name = value; }
    }
}

Files to Review

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)