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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 13 13:43:43 EDT 2009


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

User tom_hindle at sil.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=484989#c3





--- Comment #3 from tom hindle <tom_hindle at sil.org>  2009-03-13 11:43:42 MST ---
The following code added to end of DataGridView::OnHandleCreated seems to fix
this issue.

for (int i = 0; i < RowCount; i++) {
    DataGridViewRow row = rows[i];
    if (!row.IsShared)
        OnRowStateChanged(i, new DataGridViewRowStateChangedEventArgs(row,
row.State));
    }
    for (int i = 0; i < ColumnCount; i++) {
        DataGridViewColumn col = columns[i];
        OnColumnStateChanged(new DataGridViewColumnStateChangedEventArgs(col,
col.State));
    }

I will submit a patch after further testing.

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