K
Kees de Winter
Hello,
I am binding an ObjectDataSource control to a custom object. A Detailsview
shows the data from the object. "Normal" properties are shown allright, but
I cannot get array properties to be shown. For example:
This works fine:
(In DetailsView)
<asp:BoundField DataField="drivingDirections" HeaderText="drivingDirections"
SortExpression="drivingDirections" />
But this doesn't:
Suppose there was an array property "Addresses" holding address objects
(just an example):
<asp:BoundField DataField="Addresses(0).Street" HeaderText=""
SortExpression="" />
I hope it is just a syntactical issue? Which syntax to use?
I am binding an ObjectDataSource control to a custom object. A Detailsview
shows the data from the object. "Normal" properties are shown allright, but
I cannot get array properties to be shown. For example:
This works fine:
(In DetailsView)
<asp:BoundField DataField="drivingDirections" HeaderText="drivingDirections"
SortExpression="drivingDirections" />
But this doesn't:
Suppose there was an array property "Addresses" holding address objects
(just an example):
<asp:BoundField DataField="Addresses(0).Street" HeaderText=""
SortExpression="" />
I hope it is just a syntactical issue? Which syntax to use?