[Mono-bugs] [Bug 80464][Wis] New - Column not activated in DataGrid

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

--- shadow/80464	2007-01-05 20:22:51.000000000 -0500
+++ shadow/80464.tmp.29981	2007-01-05 20:22:51.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 80464
+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: Column not activated in DataGrid
+
+Observed: nothing is active
+ 
+Expected: second column in first row must be active
+
+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 grid();
+		DataSet dataSet1 = new DataSet();
+		dataSet1.Tables.Add();
+		dataSet1.Tables[0].Columns.Add();
+		dataSet1.Tables[0].Columns.Add();
+		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.Send("{Enter}");
+	}
+}
+
+class grid : DataGrid {
+	protected override bool ProcessCmdKey(ref Message msg, Keys 
+keyData) {
+		if (msg.WParam.ToInt32() == (int)Keys.Enter) {
+			SendKeys.Send("{Tab}");
+			return true;
+		}
+		return base.ProcessCmdKey(ref msg, keyData);
+	}
+}


More information about the mono-bugs mailing list