BO property attributes


Author
Message
jandyn
jandyn
StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)
Group: Forum Members
Posts: 5, Visits: 37
Why do BO properties behave differently from properties on other objects as far as attributes on them at runtime?



I'm trying to use a PropertyGrid.

If I create an object from a class that I define in code with a property on it that has an DisplayName attribute like this:




DisplayName("String 1 display name"), _

Description("This is string 1 Description"), _

Category("Test Category")> _

Public Property [String1]() As System.String

Get

Return _String1

End Get

Set(ByVal value As System.String)

_String1 = value

End Set

End Property





In the PropertyGrid it shows my display name instead of the property name in the left column for that property like a PropertyGrid is supposed to.



If I add a DisplayName attribute to a BO property, no matter what I try, the PropertyGrid always shows the property's name NOT the displayname.



Want more detail and how to reproduce: see my other posting

http://forum.strataframe.net/Topic19880-6-1.aspx

Attachments
2grids.png (134 views, 38.00 KB)
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Please read my post on that thread.  Thanks.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search