PropertyDescriptor.DisplayName could use PropertyInfo.FriendlyName

PropertyDescriptor.DisplayName could use PropertyInfo.FriendlyName

Old forum URL: forums.lhotka.net/forums/t/4642.aspx


Patrick posted on Tuesday, April 08, 2008

Since CSLA.NET 3.5 we have the PropertyInfo.FriendlyName property.

In data binding PropertyDescriptor.DisplayName is used to extract the display name for e.g. grid controls to use.

It seems like that it would be a good fit if CSLA.NET could pass on the FriendlyName as the DisplayName for the property descriptor.

What do you think Rocky? Smile [:)]

Thank you,
Patrick

Patrick replied on Saturday, May 03, 2008

Just a follow up to see if my post got losted as it seems like a helpful & small improvment Wink [;)]

Thanks,
Patrick

JoeFallon1 replied on Wednesday, September 24, 2008

Bump.

RockfordLhotka replied on Wednesday, September 24, 2008

It isn't as easy as it might appear, because the base classes don't currently implement custom type descriptors, and I think that'd be necessary to provide that information.

But I'll add it to the wish list: http://www.lhotka.net/cslabugs/edit_bug.aspx?id=180

RockfordLhotka replied on Wednesday, September 24, 2008

You may want to check out this thread too
http://forums.lhotka.net/forums/thread/26539.aspx

Copyright (c) Marimer LLC