[Mono-bugs] [Bug 333750] New: Data binding issue in ComboBox
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Oct 14 19:02:02 EDT 2007
https://bugzilla.novell.com/show_bug.cgi?id=333750
Summary: Data binding issue in ComboBox
Product: Mono: Class Libraries
Version: 1.2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at ximian.com
ReportedBy: trofimich at gmail.com
QAContact: mono-bugs at ximian.com
Found By: ---
Created an attachment (id=178320)
--> (https://bugzilla.novell.com/attachment.cgi?id=178320)
Screenshot
ComboBox displays incorrect text after data binding. On screenshot you can see
that ComboBox displays text "MonoSWF.Form1+Test" instead of "b1".
Code to reproduce is next:
using System.Collections.Generic;
using System.Windows.Forms;
namespace MonoSWF
{
public partial class Form1 : Form
{
public class Test
{
private string a;
private string b;
public string A { get { return a; } }
public string B { get { return b; } }
public Test(int i)
{
a = "a" + i;
b = "b" + i;
}
}
public Form1()
{
InitializeComponent();
List<Test> list = new List<Test>();
for (int i = 0; i < 3; i++)
list.Add(new Test(i));
comboBox1.DataSource = list;
comboBox1.ValueMember = "A";
comboBox1.DisplayMember = "B";
}
}
}
--
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