Dynamically creating and registering properties in ReadOnlyBase<T>? #3600
Unanswered
michaelcsikos
asked this question in
Questions
Replies: 2 comments 1 reply
-
If we have to inherit from |
Beta Was this translation helpful? Give feedback.
1 reply
-
I've had to do something similar. Basically we use Csla and the object has a MobileDictionary<string, string>, then on the client we use the dictionary to build a DataTable and bind the grid to the data table. If having the values as a string is a problem you could return a string with xml, and then parse the xml. That way you can include the data type of each value as well. But I don't think you'd be able to have BOs with editable properties in the grid. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Has anyone experimented with read-only objects with dynamic properties?
I have a situation where I want an info object which I can bind to a
DataGridView
in WinForms .NET 4.8, but the properties will all be user-defined. This project is using CSLA 4.11.2.Alternatively, I could define something like 200 properties at compile time which pass through to a dictionary or list.
Beta Was this translation helpful? Give feedback.
All reactions