[Mono-bugs] [Bug 484989] New: DataGridView doesn't emit RowStateChanged Event on creation.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 12 19:30:11 EDT 2009


           Summary: DataGridView doesn't emit RowStateChanged Event on
    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: ---

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

Sample code showing problem.

On .NET OnRowStateChanged is written 3 times. 

using System;
using System.Drawing;
using System.Windows.Forms;

public class Form1 : System.Windows.Forms.Form
    public Form1()
        this.Load += new EventHandler(Form1_Load);

    DataGridView m_grid = new DataGridView();

    private void Form1_Load(System.Object sender, System.EventArgs e)
        m_grid.RowStateChanged += new

        m_grid.RowCount = 3;        

    protected virtual void OnRowStateChanged(object sender,
DataGridViewRowStateChangedEventArgs e)

    static void Main()
        Application.Run(new Form1());

Reproducible: Always

Steps to Reproduce:
Actual Results:  
"OnRowStateChanged" is NOT written to Console

Expected Results:  
"OnRowStateChanged" should be written to Console 3 times

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