[IronPython] Data binding - how?
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
> > number of rows, but the cells are all empty. Below is my most
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users