How to change the DisplayNameAttribute on runtime to use in a Property Grid C#

Posted by Apoc on Stack Overflow See other posts from Stack Overflow or by Apoc
Published on 2010-03-10T21:47:07Z Indexed on 2010/03/11 5:18 UTC
Read the original article Hit count: 347

Filed under:
|

I am wondering how to change the DisplayNameAttribute on runtime, I want the displayName to be Feet instead of Meters in my property grid when I do some conversions, is that possible?

[DisplayName("Meters")]
public double Distance
  {
     get{return distance;}
  }

© Stack Overflow or respective owner

Related posts about c#

Related posts about propertygrid