I'm using ObjectDatasourc e in combination with a Formview. The
ObjectDatasourc e is connected to a FormView.
I have a business object property which I can't update through the normal
binding since it's a custom enum type. I managed to access the buinsess
object through the FormView.DataIt em property in the OnDataBinding event so
that I can fill a dropdownlist with the correct value by casting the enum
type to an int.
However,when trying to get the data OUT of the control into the business
object I can't seem to get access to the DataItem (i.e. the business object)
since it's null in the OnItemInserting and OnItemUpdating events. I tried
all kinds of things to get hold of the business object but nothing seems to
work.
Anyone know how to get the DataItem when saving?
ObjectDatasourc e is connected to a FormView.
I have a business object property which I can't update through the normal
binding since it's a custom enum type. I managed to access the buinsess
object through the FormView.DataIt em property in the OnDataBinding event so
that I can fill a dropdownlist with the correct value by casting the enum
type to an int.
However,when trying to get the data OUT of the control into the business
object I can't seem to get access to the DataItem (i.e. the business object)
since it's null in the OnItemInserting and OnItemUpdating events. I tried
all kinds of things to get hold of the business object but nothing seems to
work.
Anyone know how to get the DataItem when saving?
Comment