http://bugzilla.novell.com/show_bug.cgi?id=522659


           Summary: DataGridView does not call GetValue
                    PropertyDescriptor.GetValue/SetValue
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: Development


Description of Problem:

When binding an ITypedList to a DataGridView (either via BindingSource or
directly)the List's properties  are aquired from ITypedList.GetProprties()
which returns a collection of PropertyDescriptors. This works as a DataGridView
displays the appropriate columns when binded.

However, the data are aquired/set from the said PropertyDescriptors by calling
PropertyDescriptors.GetValue and PropertyDescriptors.SetValue which are never
called resulting in an empty grid.

Tested on a solution that works fine on .net but displays empty grids on mono

Steps to reproduce the problem:
1. Create a List<T> where T a business object and implement ITypedList. 
2. On a form with a BindingSource and a DataGridView, set the BindingSource's
DataSource to the an instance of the list and the DataGridView's DataSource to
the BindingSource instance. Alternatevily try setting the DataGridView's
DataSource to the the List directly


Actual Results:

Rows are displayed but columns have no data (because the columns are created
based on the PropertyDescriptorCollection aquired from
ITypedList.GetProperties() but PropertyDescriptor.GetValue() which should
normally fetch individual column data is never called)

Expected Results:

List item's data should appear in the grid's cells

How often does this happen? 

Always

Additional Information:

The depreciated DataGrid control works fine, so this should be a bug with
DataGridView.

-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to