[IronPython] Data binding - how?

Sanghyeon Seo sanxiyn at gmail.com
Sun Dec 3 08:09:04 PST 2006


2006/12/3, Patrick O'Brien <sum.ergo.code at gmail.com>:
> 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


More information about the users mailing list