[Mono-bugs] [Bug 650394] New: DataRow.Delete() raises DataTable.RowDeleted when DataRowState.Detached
    bugzilla_noreply at novell.com 
    bugzilla_noreply at novell.com
       
    Sun Oct 31 12:57:09 EDT 2010
    
    
  
https://bugzilla.novell.com/show_bug.cgi?id=650394
https://bugzilla.novell.com/show_bug.cgi?id=650394#c0
           Summary: DataRow.Delete() raises DataTable.RowDeleted when
                    DataRowState.Detached
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: cvolzke at live.com.au
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1036 Safari/532.5
DataRow.Delete() raises DataTable.RowDeleted when DataRowState.Detached
Reproducible: Always
Steps to Reproduce:
            DataTable table = new DataTable();
            DataRow row = table.NewRow();
            bool rowDeletingRaised = false;
            bool rowDeletedRaised = false;
            table.RowDeleting += delegate { rowDeletingRaised = true; };
            table.RowDeleted += delegate { rowDeletedRaised = true; };
            row.Delete();
            Debug.Assert(rowDeletingRaised == false);
            Debug.Assert(rowDeletedRaised == false);
Actual Results:  
RowDeleting and RowDeleted raised on row with DataRowState.Detached
Expected Results:  
RowDeleting and RowDeleted should not be raised when DataRowState.Detached
-- 
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