datagrid复制
private void Dgv_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)1) // Ctrl-A 相当于输入了AscII=1的控制字符
{
this.navigatorEx1.Select();
e.Handled = true; // 不再发出“噔”的声音
}
}
private void navigatorEx1_Load(object sender, EventArgs e)
{
}
public void DataGridViewEnableCopy(DataGridView p_Data)
{
Clipboard.SetData(DataFormats.Text, p_Data.GetClipboardContent());
}