C
Colin Young
Is there a way I could create an imaginary property on one of my objects?
e.g. I would like to be able to call MyObject.Unbound1, MyObject.Unbound2,
MyObject.Unbound3, ... without needing to actually define Unbound1,
Unbound2, Unbound3, ...
The reason I need to do this is because I have a customised datagrid that
displays a collection of a custom business object and has some calculated
columns. I need to reuse some of the columns in the calculated columns (e.g.
I am displaying Cost and Quantity and I need to also display Cost *
Quantity, but in order to do that I need to set the MappingName to a valid
property of my object, but I've already displayed all the properties of my
object in the grid).
My other option is to add n 'Unboundn' properties to my object, where 'n' is
a suitable large number that is hopefully bigger than than the number of
additional columns the UI tier might wish to display.
Any ideas?
Thanks
Colin
e.g. I would like to be able to call MyObject.Unbound1, MyObject.Unbound2,
MyObject.Unbound3, ... without needing to actually define Unbound1,
Unbound2, Unbound3, ...
The reason I need to do this is because I have a customised datagrid that
displays a collection of a custom business object and has some calculated
columns. I need to reuse some of the columns in the calculated columns (e.g.
I am displaying Cost and Quantity and I need to also display Cost *
Quantity, but in order to do that I need to set the MappingName to a valid
property of my object, but I've already displayed all the properties of my
object in the grid).
My other option is to add n 'Unboundn' properties to my object, where 'n' is
a suitable large number that is hopefully bigger than than the number of
additional columns the UI tier might wish to display.
Any ideas?
Thanks
Colin