What steps will reproduce the problem?
1. Use the app
2. Select all of the DataGridView
3. Press ctrl-c to copy to to the clipboard
4. Try to paste (but the clipboard is empty)
What is the expected output? What do you see instead?
A clipboard full of the contents from the AutoUpdate DataGridVeiw
What version of the product are you using? On what operating system?
Latest
Please provide any additional information below.
I've coded a solution. Here is a svn patch to fix this problem:
Index: AutoUpdate.cs
===================================================================
--- AutoUpdate.cs (revision 19)
+++ AutoUpdate.cs (working copy)
@@ -77,5 +77,13 @@
}
}
+ private void dataGridView1_KeyPress(object sender,
KeyPressEventArgs e)
+ {
+ if (e.KeyChar == 0x03)
+ {
+ Clipboard.SetDataObject(dataGridView1.GetClipboardContent());
+ }
+ }
+
}
}
\ No newline at end of file
Index: AutoUpdate.Designer.cs
===================================================================
--- AutoUpdate.Designer.cs (revision 19)
+++ AutoUpdate.Designer.cs (working copy)
@@ -47,6 +47,7 @@
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.Size = new System.Drawing.Size(407, 266);
this.dataGridView1.TabIndex = 0;
+ this.dataGridView1.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.dataGridView1_KeyPress);
//
// clmTrack
//
Original issue reported on code.google.com by kingdav...@gmail.com on 14 Jan 2008 at 10:13
Original issue reported on code.google.com by
kingdav...@gmail.com
on 14 Jan 2008 at 10:13