https://bugzilla.novell.com/show_bug.cgi?id=488263


           Summary: DataGridView - SortMode Programmatic and SelectionMode
                    FullRowSelect conflict .Net Difference
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7)
Gecko/2009030422 Ubuntu/8.04 (hardy) Firefox/3.0.7

Attaching Test case showing problem.

The two problematic lines:

dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
c.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;

Reproducible: Always

Steps to Reproduce:
1. Compile and run test case
2.
3.
Actual Results:  
System.InvalidOperationException: Value conflicts with
DataGridView.SelectionMode.
  at System.Windows.Forms.DataGridViewTextBoxColumn.set_SortMode
(DataGridViewColumnSortMode value) [0x00034] in
/home/hindlet/src/monosvn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridViewTextBoxColumn.cs:72
 
  at Form1.Form1_Load (System.Object sender, System.EventArgs e) [0x0002e] in
/home/tom/src/svn/testrepo/tom/DataGridViewCellSizeTest/DataGridViewCellSizeTest.cs:27
 
  at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00022] in
/home/hindlet/src/monosvn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2162
 
  at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00029] in
/home/hindlet/src/monosvn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2988
 

Expected Results:  
The datagrid view should load in FullRowSelect mode.

-- 
Configure bugmail: https://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