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: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs