[Mono-bugs] [Bug 81804][Wis] New - DataGridView Style.Format = "d" exits application
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Jun 4 14:37:46 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by kobruleht2 at hot.ee.
http://bugzilla.ximian.com/show_bug.cgi?id=81804
--- shadow/81804 2007-06-04 14:37:46.000000000 -0400
+++ shadow/81804.tmp.14123 2007-06-04 14:37:46.000000000 -0400
@@ -0,0 +1,68 @@
+Bug#: 81804
+Product: Mono: Class Libraries
+Version: 1.0
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: kobruleht2 at hot.ee
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: DataGridView Style.Format = "d" exits application
+
+To reproduce,
+
+run the code.
+
+Observed:
+
+application exits without any message
+
+using System;
+using System.Windows.Forms;
+
+public class CalendarColumn : DataGridViewColumn {
+ public CalendarColumn()
+ : base(new CalendarCell()) {
+ }
+
+ public class CalendarCell : DataGridViewTextBoxCell {
+
+ public CalendarCell()
+ : base() {
+ // this line exits application:
+ this.Style.Format = "d";
+ }
+
+ public class Form1 : Form {
+ private DataGridView dataGridView1 = new DataGridView();
+
+ public static void Main() {
+ try {
+ Application.Run(new Form1());
+ }
+ catch (Exception e) {
+ MessageBox.Show(e.ToString());
+ }
+ }
+
+ public Form1() {
+ //this.dataGridView1.Dock = DockStyle.Fill;
+ this.Controls.Add(this.dataGridView1);
+ this.Load += new EventHandler(Form1_Load);
+ //this.Text = "DataGridView calendar column demo";
+ }
+
+ private void Form1_Load(object sender, EventArgs e) {
+ CalendarColumn col = new CalendarColumn();
+ this.dataGridView1.Columns.Add(col);
+ }
+ }
+ }
+}
More information about the mono-bugs
mailing list