title: Data binding dynamic data
body: <p>I have a set of 'dynamic data' that I need to bind to the GridControl. Up until now, I have been using the standard DataTable class that's part of the System.Data namespace. This has worked fine, but I've been told I cannot use this as it's too heavy for serialization across the network between client &amp; server.</p>
  
  <p>So I thought I could easy replicate a 'cut-down' version of the DataTable class by simply having a type of <code>List&lt;Dictionary&lt;string, object&gt;&gt;</code> whereby the List represents the collection of rows, and each Dictionary represents one row with the column names and values as a KeyValuePair type. I could set up the Grid to have the column DataField properties to match those of the keys in the Dictionary (just like I was doing for the DataTable's column names.</p>
  
  <p>However after doing </p>
  
  <pre><code>gridControl.DataSource = table;
  gridControl.RefreshDataSource();
  </code></pre>
  
  <p>The grid has no data...</p>
  
  <p>I think I need to implement <code>IEnumerator</code> - any help on this would be much appreciated!</p>
  
  <p>Example calling code looks like this:</p>
  
  <pre><code>var table = new List&lt;Dictionary&lt;string,object&gt;&gt;();
  
  var row = new Dictionary&lt;string, object&gt;
  {
      {"Field1", "Data1"},
      {"Field2", "Data2"},
      {"Field3", "Data3"}
  };
  
  table.Add(row);
  
  gridControl1.DataSource = table;
  gridControl1.RefreshDataSource();
  </code></pre>