[Mono-bugs] [Bug 80889][Wis] New - DataGridTextBoxColumn does not show DateTime value

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Feb 18 12:47:16 EST 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=80889

--- shadow/80889	2007-02-18 12:47:16.000000000 -0500
+++ shadow/80889.tmp.11916	2007-02-18 12:47:16.000000000 -0500
@@ -0,0 +1,60 @@
+Bug#: 80889
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+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: DataGridTextBoxColumn does not show DateTime value
+
+Observed:
+
+Grid cell is empty
+
+Expected:
+
+Grid cell must contain todays datetime
+
+Code:
+
+using System.Windows.Forms;
+using System.Data;
+using System;
+
+static class Program {
+	static void Main() {
+		Application.Run(new Frm());
+	}
+}
+class Frm : Form {
+	public Frm() {
+		DataTable table = new DataTable();
+		DataColumn column1 = new DataColumn("Column1", typeof
+(DateTime));
+		DataGrid grid = new DataGrid();
+		table.Columns.Add(column1);
+		Controls.Add(grid);
+		table.Rows.Add(DateTime.Today );
+		DataGridTableStyle tableStyle = new DataGridTableStyle();
+		DataGridColumnStyle colStyle = new DataGridTextBoxColumn();
+		colStyle.MappingName = "Column1";
+		tableStyle.GridColumnStyles.Add(colStyle);
+		grid.TableStyles.Add(tableStyle);
+		grid.DataSource = table;
+	}
+}
+
+Environment:
+
+MONO 1.2.3 preview
+Windows XP, Estonian regional settings
+Visual C# Express 2005


More information about the mono-bugs mailing list