Sean,
Please try the following code, this should work ok as we use it extensively
when a user loads a custom class into our system.
foreach( System.Reflection.PropertyInfo pi in
MyObject.GetType().GetProperties())
{
}
Hope this helps
Regards
Scott Blood
C# Developer
"Sean" <Se**@discussions.microsoft.com> wrote in message
news:FB**********************************@microsof t.com...
I have several classes that are Ienumerable and we use them to populate
datagrids and Listboxes. Now however I need the actual column (ie property
name) thus in pesdo-code
For each Property in myObject
dynamicallycreatedCheckbox.text = property.tostring
next