Binding a Generic list property to a Label Inside Datalist
<p>I want to bind Label to a Property of a Generic list inside Container.DataItem . </p>

<p>Here I am receiving a List in Container.DataItem want to go inside this Container.DataItem containing List.</p>

<p>Aspx code</p>

<p><code>&lt;asp:Label ID="Label1" runat="server" Text='&lt;%# Container.DataBind %&gt;'&gt;&lt;/asp:Label&gt;</code></p>

<p>Output :</p>

<pre><code>System.Collection.Generic.List'1[Sizes]
</code></pre>

<p>C# Code :</p>

<pre><code>List&lt;List&lt;Sizes&gt;&gt; Combosizes =new List&lt;List&lt;Sizes&gt;&gt;();

foreach (var i in skuIdsList)
 {
 var Sizes_list = (from item in sizes
 where item.SkuId == i.skuid
 select new Sizes
    {
     skusizeid = item.SkuSizeId,
     sizevalue = item.Sizevalue
    }).ToList();

   Combosizes.Add(Sizes_list);
 }

DataList3.DataSource = Combosizes;
DataList3.DataBind();
</code></pre>

<p>This is I have bind the List> to DataList3. And I am trying to bind the label inside the DataList3 with the first index of List of List. </p>

<p>Is there any solution.??</p>
