The blog has moved to a new address. The blog is now located at http://devintelligence.com

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:

Demeter said...

Thanks pal!
I was looking for this info

vivien said...

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