[Mono-bugs] [Bug 80461][Wis] New - shift selects always from beginning of DataGrid

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 5 18:43:38 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=80461

--- shadow/80461	2007-01-05 18:43:38.000000000 -0500
+++ shadow/80461.tmp.28929	2007-01-05 18:43:38.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 80461
+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: shift selects always from beginning of DataGrid
+
+Observed: first and second row are selected
+
+Expected: second and third row must be selected
+
+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();
+		table.Columns.Add(new DataColumn());
+		DataGrid grid = new DataGrid();
+		table.Rows.Add("1");
+		table.Rows.Add("2");
+		table.Rows.Add("3");
+		table.Rows.Add("4");
+		table.Rows.Add("5");
+		grid.Dock = DockStyle.Fill;
+		grid.DataSource = table;
+		Controls.Add(grid);
+	}
+	protected override void OnActivated(System.EventArgs e) {
+		base.OnActivated(e);
+		SendKeys.SendWait("{DOWN}{DOWN}+{UP}");
+	}
+}


More information about the mono-bugs mailing list