<asp:ListView runat="server" ID="lvOuter" DataKeyNames="Id">
<LayoutTemplate>
</LayoutTemplate>
<ItemTemplate>
<asp:ListView runat="server" ID="lvinner" DataKeyNames="Id" DataSource='<%# Eval("Collection") %>'
OnItemDataBound="lvGoalsInner_DataBound">
<LayoutTemplate>
**Set X from the outer listview**
</LayoutTemplate>
<ItemTemplate>
</ItemTemplate>
</asp:ListView>
</ItemTemplate>
</asp:ListView>
Where X is a property of the class whose objects are assigned to the parent data source.
The handler is for DataBound not, ItemDataBound.