DataList control in DataListItem

M

Mirek Endys

I need to know, how to bind data into DataList, that is placed in another
DataList in SelectedItemTemplate.
I tried to FindControl on ItemCreated event, on PageLoad event, but I cannot
get this control???

How to do this???

Thanks

Mirek
 
M

Mirek Endys

I have found that.
I have Bound parent dataList in code by:

dlDTDefinitions.DataSource = transfers;
dlDTDefinitions.DataBind();

transfers is a List<iDB2SQLTransferItem> and the item (iDB2SQLTransferItem)
contain DataMappings that is List<DataMappingItem>.

in aspx i have to bind DataSource of the child DataList:

<asp:DataList ID="dlDataMapping" runat="server" DataSource='<%#
DataBinder.Eval(Container.DataItem, "DataMappings") %>'>

Thats all
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top