[Mono-bugs] [Bug 348082] New: DataGridView: AutoGenerateColumns= false does not disable column addition
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Dec 12 09:23:51 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=348082
Summary: DataGridView: AutoGenerateColumns=false does not disable
column addition
Product: Mono: Class Libraries
Version: 1.2.6
Platform: Other
OS/Version: All
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:
Grid contains 3 columns.
Moving mouse over last column in last line causes
ArgumentOufOrRangeException
Expected:
Grid should contain one column.
Environment:
1.2.6 preview 2
NET 2 profile
System.Drawing & Configuration from Nov 24, 2007 monocharge
Windows XP
VCSE 2008
Code to reproduce:
using System;
using System.Windows.Forms;
using System.Collections.Generic;
public class Test {
static void Main() {
Application.Run(new Form1());
}
}
class Form1 : Form {
public Form1() {
Controls.Add(new Grid());
}
}
class Grid : DataGridView {
public Grid() {
AutoGenerateColumns = false;
List<cust> l = new List<cust>();
l.Add(new cust());
DataGridViewTextBoxColumn tb = new DataGridViewTextBoxColumn();
tb.DataPropertyName = "c1";
Columns.Add(tb);
DataSource = l;
}
}
class cust {
public string c1 { get { return "c1"; } }
public string c2 { get { return "c2"; } }
}
--
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