title: How do I bind a IList of IDictionary objects to the collection of a data source?
body: <p>I have the following declarations:</p>
  
  <pre><code>IList&lt;IDictionary&lt;DateTime, string&gt;&gt; actions = new List&lt;IDictionary&lt;DateTime, string&gt;&gt;();
  IDictionary&lt;DateTime, string&gt; d;
  </code></pre>
  
  <p>Then several times I add to actions, for example:</p>
  
  <pre><code>d = new Dictionary&lt;DateTime, string&gt;();
  d.Add(DateTime.Now, "Must select at least one Policy to assign.");
  actions.Add(d);
  </code></pre>
  
  <p>And at the end, I want to be able to assign this List of Dictionary objects to a data source.  Something like:</p>
  
  <pre><code>rptActions.DataSource = actions.OrderByDescending(a =&gt; a.Key);
  </code></pre>
  
  <p>with the corresponding asp code as follows:</p>
  
  <pre><code>&lt;asp:Repeater ID="rptActions" runat="server"&gt;
     &lt;ItemTemplate&gt;
        &lt;li&gt;
           &lt;%#Eval("Value") %&gt;
        &lt;/li&gt;
     &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>thanks in advance.</p>
  
  <p>Updated*************</p>
  
  <p>Sorry, I do have the databind but when I try to order the list I get a compile error: </p>
  
  <blockquote>
    <p>Unknown method <code>'OrderByDescending(?)'</code> of <code>'System.Collections.Generic.IList&lt;System.Collections.Generic.IDictionary&lt;System.DateTime, string&gt;&gt;'</code></p>
  </blockquote>