2010年10月5日
摘要: DGV上的鼠标事件,MouseDown 、MouseUp、CellMouseClick等事件可参考。 if (MouseButtons == MouseButtons.Right) MessageBox.Show("OK"); // DataGridView 的 ContextMenuStrip 设定 DataGridView1.ContextMenuStrip = this.ContextMe... 阅读全文
posted @ 2010-10-05 20:15 赤色彗星 阅读(7943) 评论(0) 推荐(0) 编辑
摘要: private void DataGridView1_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex >= 0) { if (e.Button == System.Windows.Forms.MouseButtons.Right) { dataGridView1.CurrentCe... 阅读全文
posted @ 2010-10-05 20:13 赤色彗星 阅读(1491) 评论(0) 推荐(0) 编辑