摘要:
复制,直接用剪切板1 if (dgvData.GetCellCount(DataGridViewElementStates.Selected) > 0)2 {3 Clipboard.SetDataObject(dgvData.GetClipboardContent(), false);5 }粘贴功能DataObject o = (DataObject)Clipboard.GetDataObject(); if (o.GetDataPresent(DataFormats.Text)) ... 阅读全文