2006/12/3, Patrick O'Brien <[EMAIL PROTECTED]>:
> For the life of me I can't successfully bind a list of class instances to a
> data grid view.  I get the grid, with the correct column headers and correct
> number of rows, but the cells are all empty.  Below is my most sophisticated
> attempt.  Any pointers would be greatly appreciated.

Try this:

class Person(object):
    __slots__ = ['Name', 'Age']
    # etc.

Ugh. This is wrong. One should never need to use __slots__ in Python,
except for memory optimization...

-- 
Seo Sanghyeon
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to