[Mono-bugs] [Bug 80965][Wis] New - AllowNull=false not respected in DataGridBoolColumn
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Feb 26 16:01:37 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=80965
--- shadow/80965 2007-02-26 16:01:37.000000000 -0500
+++ shadow/80965.tmp.12469 2007-02-26 16:01:37.000000000 -0500
@@ -0,0 +1,62 @@
+Bug#: 80965
+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: AllowNull=false not respected in DataGridBoolColumn
+
+To reproduce:
+
+1. Run code
+2. Press space bar several times
+
+Observed:
+
+Space bar toggles between 3 states in checkbox
+
+Expected:
+
+Space bar should toggle between 2 states
+
+
+Code:
+
+
+using System.Windows.Forms;
+using System.Data;
+static class Program {
+ static void Main() {
+ Application.Run(new Frm());
+ }
+}
+
+class Frm : Form {
+ public Frm() {
+ DataTable table = new DataTable();
+ DataColumn column1 = new DataColumn();
+ DataGrid grid = new DataGrid();
+ grid.Dock = DockStyle.Fill;
+ table.Columns.Add(column1);
+ Controls.Add(grid);
+ table.Rows.Add();
+
+ DataGridTableStyle tableStyle = new DataGridTableStyle();
+ DataGridBoolColumn colStyle = new DataGridBoolColumn();
+ colStyle.AllowNull = false;
+ colStyle.MappingName = "Column1";
+ tableStyle.GridColumnStyles.Add(colStyle);
+ grid.TableStyles.Add(tableStyle);
+ grid.DataSource = table;
+ }
+}
More information about the mono-bugs
mailing list