1.添加ContextMenuStrip控件
2.修改DataGridView的【ContextMenuStrip】属性
3.修改DataGridView的【CellMouseUp】属性
private void dataGridView1_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e)
{
if (e.Button ==<
1.添加ContextMenuStrip控件
2.修改DataGridView的【ContextMenuStrip】属性
3.修改DataGridView的【CellMouseUp】属性
private void dataGridView1_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e)
{
if (e.Button ==<