BoldDeskPremium customer service software with affordable pricing: $10 for 3 agents. Try it for free.
private void gridDataBoundGrid2_DragDrop(object sender, DragEventArgs e) { e.Effect = DragDropEffects.Copy; } 2) You can use the DragOver event on the target to disallow a drop. Here is a handler taht will not drop if the mouse is over column 2.private void gridDataBoundGrid2_DragOver(object sender, DragEventArgs e) { Point pt = this.gridDataBoundGrid2.PointToClient(new Point(e.X, e.Y)); int row, col; if(this.gridDataBoundGrid2.PointToRowCol(pt, out row, out col, -1)) { if(col == 2) e.Effect = DragDropEffects.None; } }
>private void gridDataBoundGrid2_DragDrop(object sender, DragEventArgs e) >{ > e.Effect = DragDropEffects.Copy; >} > > >2) You can use the DragOver event on the target to disallow a drop. Here is a handler taht will not drop if the mouse is over column 2. >>private void gridDataBoundGrid2_DragOver(object sender, DragEventArgs e) >{ > Point pt = this.gridDataBoundGrid2.PointToClient(new Point(e.X, e.Y)); > int row, col; > if(this.gridDataBoundGrid2.PointToRowCol(pt, out row, out col, -1)) > { > if(col == 2) > e.Effect = DragDropEffects.None; > } >} >