回复 1楼topaz14的帖子
请参考以下代码:
- void c1TrueDBGrid1_MouseDown(object sender, MouseEventArgs e)
- {
- if (e.Button== System.Windows.Forms.MouseButtons.Right)
- {
- int row = 0;
- int col = 0;
- this.c1TrueDBGrid1.CellContaining(e.X,e.Y,out row,out col);
- this.c1TrueDBGrid1.SetActiveCell(row, col);
- }
- }
复制代码 |