M
michaelkb
Has anyone bound a control to an ObjectDataSource when the main object
had a child object? I have a BillingObject with a a child object called
AddressObject. I can't figure out how to create a BoundField for
anything in the AddressaObject. I tried this with no luck:
OwnerID is a property of the main BillingObject, so this works fine:
<asp:BoundField DataField="OwnerID" HeaderText="OwnerID"
SortExpression="OwnerID" />
State is a property of the BillingAddress object within the
BillingObject. The below does not work:
<asp:BoundField DataField="BillingAddress.State" HeaderText="State"
SortExpression="BillingAddress.State" />
Any ideas?
had a child object? I have a BillingObject with a a child object called
AddressObject. I can't figure out how to create a BoundField for
anything in the AddressaObject. I tried this with no luck:
OwnerID is a property of the main BillingObject, so this works fine:
<asp:BoundField DataField="OwnerID" HeaderText="OwnerID"
SortExpression="OwnerID" />
State is a property of the BillingAddress object within the
BillingObject. The below does not work:
<asp:BoundField DataField="BillingAddress.State" HeaderText="State"
SortExpression="BillingAddress.State" />
Any ideas?