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.
Unfortunately, activation email could not send to your email. Please try again.

GridControl mouse events

Thread ID:

Created:

Updated:

Platform:

Replies:

103225 Apr 13,2012 06:16 AM Apr 18,2012 07:27 AM Windows Forms 2
loading
Tags: GridControl
ian bradley
Asked On April 13, 2012 06:16 AM

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?


ian bradley
Replied On April 13, 2012 06:18 AM

Edit:

We went from
GridSelectionFlags.None

To
GridSelectionFlags.Any

This seems to disable mouse events.




Mercy C [Syncfusion]
Replied On April 18, 2012 07:27 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;