[Mono-bugs] [Bug 522659] DataGridView does not call PropertyDescriptor.GetValue/SetValue

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jul 26 07:06:59 EDT 2009


User nsarris79 at hotmail.com added comment

--- Comment #4 from Nikos Sarris <nsarris79 at hotmail.com>  2009-07-26 05:06:55 MDT ---
I looked into the SVN...

In DataGridView.cs (line 5910) in void DoBinding() the columns are
automatically created by getting the properties from
DataManager.GetItemProprties() , which in turn calls

But in void AddBoundRow (object element) TypeDescriptor.GetProperties (element)
is called instead which gets the actuall class properties from the element.

So the the fix to the bug would be to change row 5846 from:

PropertyDescriptorCollection properties = TypeDescriptor.GetProperties


PropertyDescriptorCollection properties = DataManager.GetItemProprties();

Alas the issue with ITypedList.GetItemProperties(listAccessors) always being
called with a null argument seems to be an issue with BindingSource and not the
DataGridView. I'll investigate and open another bug ticket.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list