How to add data items to a List<Struct>
<p>I have the following struct defined in a user control:</p>

<pre><code>public struct ColumnData
{
    public string ColumnName { get; set; }
    public string ColumnDataItem { get; set; }
    public bool ColumnIsHyperLink { get; set; }
    public string ColumnHyperLinkURL { get; set; }
    public string ColumnHyperLinkPK { get; set; }
}
</code></pre>

<p>I create a new instance of <code>List&lt;ColumnData&gt;</code> (In a different code behind that creates an instance of the user control) and want to pass in values to it, but how do I assign them to specific attributes within the struct object?</p>

<p>I create an instance of the struct using the following code: </p>

<pre><code>List&lt;ColumnData&gt; DataItems = new List&lt;ColumnData&gt;();
</code></pre>
