[IronPython] Data binding - how?

Patrick O'Brien sum.ergo.code at gmail.com
Sun Dec 3 18:00:04 CET 2006


On 12/3/06, Sanghyeon Seo <sanxiyn at gmail.com> wrote:
>
> 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...
>

Did that actually work for you?  I still can't get it to work.

-- 
Patrick K. O'Brien
Orbtech       http://www.orbtech.com
Schevo        http://www.schevo.org
Louie         http://www.pylouie.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20061203/ec30518d/attachment.html>


More information about the Ironpython-users mailing list