G
Georg Mayer
Hi,
In my DataSet, which is bound to a repeater, I have two tables: item
and child:
ds = new DataSet();
itemadapter.Fill(ds, "item");
childadapter.Fill(ds, "child");
How do I access e.g. the item table and the colums in it from my
itemtemplate of the repeater control?
I'v tried the following code which doesn't work:
<asp:Repeater ID="Repeater1" Runat="server" >
<ItemTemplate>
<td>
<asp:Label Runat="server" Text='<%#
DataBinder.Eval(Container.DataItem,
"Tables[item].DefaultView.[0].Price") %>' ></asp:Label>
</ItemTemplate>
</asp:Repeater>
I get an exception there: "DataBinding: 'System.Data.DataRowView' does
not contain a property with the name 'Tables'."
Can anyone tell how I could get the information from that "item"
table?
Thanx
Georg
In my DataSet, which is bound to a repeater, I have two tables: item
and child:
ds = new DataSet();
itemadapter.Fill(ds, "item");
childadapter.Fill(ds, "child");
How do I access e.g. the item table and the colums in it from my
itemtemplate of the repeater control?
I'v tried the following code which doesn't work:
<asp:Repeater ID="Repeater1" Runat="server" >
<ItemTemplate>
<td>
<asp:Label Runat="server" Text='<%#
DataBinder.Eval(Container.DataItem,
"Tables[item].DefaultView.[0].Price") %>' ></asp:Label>
</ItemTemplate>
</asp:Repeater>
I get an exception there: "DataBinding: 'System.Data.DataRowView' does
not contain a property with the name 'Tables'."
Can anyone tell how I could get the information from that "item"
table?
Thanx
Georg