[Mono-bugs] [Bug 482133] New: Setting RowCount on DataGridView to reduce number of rows, fails to reduce rows correctly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 4 16:43:27 EST 2009


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


           Summary: Setting RowCount on DataGridView to reduce number of
                    rows, fails to reduce rows correctly
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Ubuntu
            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=277170)
 --> (https://bugzilla.novell.com/attachment.cgi?id=277170)
Patch to fix described problem. Changed to remove last item first. Also fixes
Column removing.

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

Setting RowCount on DataGridView to reduce number of rows, fails to reduce rows
correctly

Problem seems to be in DataGridView RowCount Property.
Calling rows.RemoveAt with item in middle of list. 




Reproducible: Always

Steps to Reproduce:
1. Create a DataGridView list with some rows in it.
2. set DataGridView.RowCount property to a value less than number of rows
3. Display DataGridView.RowCount
Actual Results:  
RowCount greater than set value

Expected Results:  
RowCount should equal set value

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