[Mono-bugs] [Bug 337470] New: DataGridView: string[] is not convertible to string
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Oct 29 07:07:00 EDT 2007
https://bugzilla.novell.com/show_bug.cgi?id=337470
Summary: DataGridView: string[] is not convertible to string
Product: Mono: Class Libraries
Version: 1.2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at ximian.com
ReportedBy: kobruleht2 at hot.ee
QAContact: mono-bugs at ximian.com
Found By: ---
To reproduce, run the code
Observed:
System.InvalidCastException: Value is not convertible to object: string[] to
string
Expected:
grid should appear
Code:
using System;
using System.Windows.Forms;
static class Program {
static void Main() {
try {
Array customers;
customers = new test[1];
customers.SetValue(new test(), 0);
Form f = new Form();
DataGridView dgv = new DataGridView();
dgv.Dock = DockStyle.Fill;
f.Controls.Add(dgv);
dgv.DataSource = customers;
Application.Run(f);
}
catch (Exception e) {
MessageBox.Show(e.ToString());
}
}
}
public class test {
public string[] tt { get { return new string[] { "null" }; } }
}
Enivronment:
MONO 1.2.5
VCSE 2005
NET 2
Windows XP
--
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