Customized properties in Devexpress Grid Binding


Author
Message
Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 163, Visits: 493
I've changed some property names to friendly names using custom code option in Business Object Mapper.

(Plus override GetCustomBindablePropertyDescriptors for these fields)

I've noticed that when this object was bind to a Devexpress Grid with business binding source, these properties were not seen in Devexpress Grid.

I've tested for Devexpress (Wrapped) Textbox. These fields were listed in the BindingField list of the textbox.

What is missing ?

Reply
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
What does the declaration of your BO class look like?  In the GetCustomBindablePropertyDescriptors method, you are using the type of CompaniesBase, is this the class that your custom properties are defined within?  There is really not much that has to be done....if you have type descriptors create or have them defined in the GetCustomBindablePropertyDescriptors method, they should show up.  What does your BO Mapper settings for one of your custom properties look like?  Do you have any other options checked, like the Create Descriptor?  If so, then this is probably your issue.  You do not need that checked since you are defining the GetCustomBindablePropertyDescriptors.
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