We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

GridControl mouse events

So we have a GridControl on a form.
we subscribe to GridCellMouseDown.

This worked fine.

We then added subscriptions to GridSelectionChanging and GridSelectionChanged.

Now GridCellMouseDown doesn't fire.

Why?


2 Replies

IB ian bradley April 13, 2012 10:18 AM UTC

Edit:

We went from
GridSelectionFlags.None

To
GridSelectionFlags.Any

This seems to disable mouse events.





MC Mercy C Syncfusion Team April 18, 2012 11:27 AM UTC

Hi Ian,

Thanks for your interest in Syncfusion products.

Instead of "CellMouseDown" event, please make use of "MouseDown" event which will fire when "AllowSelection" property is set to "Any".

void gridControl1_MouseDown(object sender, MouseEventArgs e)
{
int row, col;
this.gridControl1.PointToRowCol(new Point(e.X, e.Y), out row, out col);
}

Please refer to the sample in the following link
http://www.syncfusion.com/downloads/Support/DirectTrac/92112/WindowsFormsApplication85-1379732731.zip

Please let me know if you have any concerns.

Regards,
Mercy.C


Loader.
Live Chat Icon For mobile
Up arrow icon