[Mono-bugs] [Bug 457107] New: DataGridView: bindingsource does not accept data entry

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Dec 7 10:32:03 EST 2008


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


           Summary: DataGridView: bindingsource does not accept data entry
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: kobruleht2 at hot.ee
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


To reproduce:

1. Run code
2. Press a

Observed: a does not appear
Expected: a should appear

3. Press down arrow and enter b

Observed: b appears in first line
Expected: b should appear in second line


using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;

class TestApplication
{
    static void Main()
    {
        var p = new Form();
        p.IsMdiContainer = true;
        p.WindowState = FormWindowState.Maximized;
        var f1 = new TestForm();
        f1.MdiParent = p;
        f1.Show();
        Application.Run(p);
    }
}

class TestForm : Form
{
    internal DataGridView grid = new DataGridView();
    internal List<Customer> list;

    public TestForm()
    {
        Controls.Add(grid);
        BindingSource BindingSource = new BindingSource();
        list = new List<Customer>();
        list.Add(new Customer() { Name = "test" });
        BindingList<Customer> bindingList = new BindingList<Customer>(list);
        BindingSource.DataSource = bindingList;
        grid.DataSource = bindingList;
    }
}

class Customer
{
    public string Name { get; set; }
}


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