How to get the column count from an empty collection of type EnumerableRowCollection
<p>I have an object of type <code>System.Data.EnumerableRowCollection&lt;System.Data.DataRow&gt;</code> which doesn't have any items in it. How can I get the number of columns in it?</p>

<p>I can use the IDE to dig through the properties to get the count but I don't know how to get this via code. In the image you can see the source table has 2 columns.</p>

<p><img src="http://i.stack.imgur.com/NwMGY.png" alt="enter image description here"></p>
