How do I define a datatable so that List<String> fields will expand when mapped to datagrid?
<p>Seems the easiest looking problems are the hardest to solve.</p>

<p>I am writing some code to dump data from Amazon Web Services.  I collect the data and store it in a datatable.</p>

<pre><code>    public static DataTable GetEC2DetailsTable()
    {
        DataTable table = new DataTable();
        // Here we create a DataTable .
        table.Columns.Add("AccountID", typeof(string));
        table.Columns.Add("InstanceID", typeof(string));
        table.Columns.Add("SecurityGroups", typeof(List&lt;string&gt;));

        //This code ensures we croak if the InstanceID is not unique.  How to catch that?
        UniqueConstraint makeInstanceIDUnique =
            new UniqueConstraint(new DataColumn[] { table.Columns["InstanceID"] });
        table.Constraints.Add(makeInstanceIDUnique);

        //Can we set the view on this table to expand IEnumerables?
        DataView mydataview = table.DefaultView;

        //????Can we define the field here somehow?

        return table;
    }
</code></pre>

<p>In my program I have a function that fills one of these tables, and I would like to just dump it straight into a WPF DataGrid to display.  Below,  datable is returning my new datatable.</p>

<pre><code>            var datable = Scanner.GetEC2Instances(ProfilesComboBox.SelectedItem.ToString(), RegionListcomboBox.SelectedItem.ToString());
            DasGrid.ItemsSource = datable.DefaultView;
</code></pre>

<p>This works great, except for the columns where data is typeof List of strings.  For those columns, the data is just presented in the Datagrid as (Collection).</p>

<p>I have seen all kinds of examples where the XAML code is editted, but I would prefer to build the logic right into the datatable. I plan to be dumping other datatables to the grid so dont want to contaminate it.  In theory I should be able to edit the default TableView to make this work, shouldnt I?  Been all over the web trying to solve this.  The last hurdle before I can really start cutting loose.</p>