How to get the member of an object from a list<object>?
<p>my method GetColumns returns a list of column information object. I need to add only the columnname from the object to the checklistbox. How can i do that. From this commented lin of code i'm getting the class name of the object. How can i bind the dynamic checklistbox with the name stored in the object?  Please Help....!</p>

<pre><code>List&lt;Columns&gt; DBList = new List&lt;Columns&gt;();
DBList = metadataobj.GetColumns(clbTables.Items[indexofselectedtable].ToString());
        chklistcolumns = new CheckedListBox();
            for (int j = 0; j &lt; DBList.Count; j++)
            {

                chklistcolumns.Name = clbTables.Items[indexofselectedtable].ToString();
                //chklistcolumns.Items.Add(DBList.ElementAt(j));
                ;
            }
</code></pre>

<p>this.Controls.Add(chklistcolumns);</p>
