I followed the CellButtons example and implemented the same thing, I added the CurrentCellActivating handler into my form and prevent the user from editing cell(1,1).
i.e if (e.ColIndex == 1 && e.RowIndex == 1)
e.Cancel = true;
When I single clicks onto cell(1,1), I can still see the highlighted cell when I drag the button. However, when I double clicked into cell(1,1), I am unable to see the highlighted cell when I drag the buttons. I also tired this with the CellButtons sample project, I see the same thing.
ADAdministrator Syncfusion Team May 28, 2004 09:02 AM
Instead of cancelling CurrentCellActivating to prevent a user from editing a cell, try handling the CurrentCellStartEditing, and cancel that event.
That is more likely not to interfere with the cell buttons.
ADAdministrator Syncfusion Team May 28, 2004 09:28 AM
I tried both already, they seems to behave the same.
ADAdministrator Syncfusion Team May 28, 2004 02:16 PM
I can see the problem you described in the sample even without handling CurrentCellActivating.
I was able to avoid it by handling the grid.DoubleClick event faking a mouseclick to reset teh mouse controller that is getting out of sync with the double click in this celltype. You might want to conditionally do the fake click based on if the currentcell is one of these button cells.
private void gridControl1_DoubleClick(object sender, System.EventArgs e)
Point p = this.gridControl1.PointToClient(Control.MousePosition);
ADAdministrator Syncfusion Team May 31, 2004 05:39 AM