Hi -
I'm using WebDataGrid to render different entity types that contain complex properties. I use ObjectDataSource to bind this entity with the WebDataGrid. A fake IList<Equipment> is provided to the source provider. Does anyone know if this is supportable or there is a trick to perform the adding of this complex entity to the datasource.
i.e.
<
public class Equipment{ public EquipmentCategory Category { get; set; } public string Comment { get; set; } public bool IsCritical { get; set; }}
When setting the manual CRUD I'm doing something like this:
_clickAddRow:
The problem occurs at the object data source when it try to convert the Category from object EquipmentCategory. Is there any sample of way to by pass this? I try to set the event Inserting, Inserted of the ObjectDataSource but those events never get fired.
Thanks for any help.