Saturday, January 27, 2007

PropertyGrid: How to change property name?

To display property name in readable form you can use DisplayName attribute

[DisplayName("First Name")]
public string FirstName
{
get
{
return _FirstName;
}
set
{
_FirstName
= value;
}
}


source(russian)

2 comments:

  1. Thanks pal!
    I was looking for this info

    ReplyDelete
  2. If there is another tips about set the property as readOnly for PropertyGrid it would be wonderful!

    ReplyDelete