[Mono-bugs] [Bug 80353][Wis] New - Grid navigation broken after null constraint violation in adding row
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Dec 24 14:34:23 EST 2006
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=80353
--- shadow/80353 2006-12-24 14:34:23.000000000 -0500
+++ shadow/80353.tmp.14637 2006-12-24 14:34:23.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 80353
+Product: Mono: Class Libraries
+Version: 1.1
+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: Grid navigation broken after null constraint violation in adding row
+
+To reproduce:
+
+1. Run the code
+
+2. Press down arrow
+
+3. Press Up arrow
+
+4. Answer Yes to message
+
+Exception of type System.Data.NotNUllAllowedException was thrown
+
+5. Press up arrow
+
+Observed:
+
+Up arrow key is ignored. It is not possible to move to other row
+
+Expected:
+
+Yes/No prompt should not appear.
+It must be possible to move to other row
+
+Code to reproduce:
+
+using System.Windows.Forms;
+using System.Data;
+static class Program {static void Main(){
+Application.Run(new Frm());}}
+
+class Frm : Form {
+
+public Frm() {
+DataTable dt = new DataTable();
+DataColumn column = new DataColumn();
+column.Caption = "Caption";
+column.AllowDBNull = false;
+dt.Columns.Add(column);
+dt.Rows.Add("");
+DataGrid dg= new DataGrid();
+this.Controls.Add(dg);
+dg.SetDataBinding(dt, "");
+} }
More information about the mono-bugs
mailing list