拿去吧,不谢!
- private void _fg_MouseDown(object sender, MouseEventArgs e)
- {
- if(e.Button==MouseButtons.Right)
- {
- C1FlexGrid fg = sender as C1FlexGrid;
- int c = fg.MouseCol;
- int r = fg.MouseRow;
- if (c < fg.Cols.Fixed || r < fg.Rows.Fixed) return;
- fg.Row = r;
- fg.Col = c;
- }
- }
复制代码 |