On 12/3/06, Sanghyeon Seo <[EMAIL PROTECTED]> wrote:
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...
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
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com