[Mono-bugs] [Bug 482478] New: DataGridView: Programmatic selection of Rows does cause row to be displayed, if not currently in view.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 5 12:38:29 EST 2009


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


           Summary: DataGridView: Programmatic selection of Rows does
                    cause row to be displayed, if not currently in view.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tom_hindle at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=277430)
 --> (https://bugzilla.novell.com/attachment.cgi?id=277430)
Units tests for DataGridView - Selecting Last Cell and Chaning RowCount after
Selecting last cell

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6)
Gecko/2009020911 Ubuntu/8.04 (hardy) Firefox/3.0.6

For example code like the following:

myDataGridView.RowCount = 100;
myDataGridView.CurrentCell = myDataGridView[0, myDataGridView.RowCount -1];     
System.Drawing.Rectangle displayRect = myDataGridView.DisplayRectangle;
System.Drawing.Rectangle rowRect =
myDataGridView.GetRowDisplayRectangle(myDataGridView.RowCount - 1, false);
Console.WriteLine("Current row is visable {0}", displayRect.Contains(rowRect)); 

Display true on .NET and false on mono.

Attaching a patch which contains some additional unit tests.


Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
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.


More information about the mono-bugs mailing list