[Mono-bugs] [Bug 80463][Wis] New - Wrong column contents in DataGrid after scroll

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 5 20:22:11 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=80463

--- shadow/80463	2007-01-05 20:22:11.000000000 -0500
+++ shadow/80463.tmp.29962	2007-01-05 20:22:11.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 80463
+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: Wrong column contents in DataGrid after scroll
+
+To reproduce:
+
+run the code in Windows XP
+
+Observed: column4 contains 333333 . This screen region is no more updated.
+
+Expected: column4 must contain 444444
+
+Code:
+
+using System.Windows.Forms;
+using System.Data;
+static class Program {
+	static void Main() {
+		Application.Run(new Frm());
+	}
+}
+
+class Frm : Form {
+	public Frm() {
+		DataGrid dataGrid1 = new DataGrid();
+		DataSet dataSet1 = new DataSet();
+		dataSet1.Tables.Add();
+		dataSet1.Tables[0].Columns.Add();
+		dataSet1.Tables[0].Columns.Add();
+		dataSet1.Tables[0].Columns.Add();
+		dataSet1.Tables[0].Columns.Add();
+		dataSet1.Tables[0].Columns.Add();
+		dataSet1.Tables[0].Rows.Add
+("111111", "222222", "333333", "444444", "555555");
+		
+		dataGrid1.DataSource = dataSet1;
+		dataGrid1.DataMember = dataSet1.Tables[0].TableName;
+		dataGrid1.Dock = DockStyle.Fill;
+
+		Controls.Add(dataGrid1);
+	}
+
+	protected override void OnActivated(System.EventArgs e) {
+		base.OnActivated(e);
+		SendKeys.SendWait("{TAB 4}");
+	}
+}


More information about the mono-bugs mailing list