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.
Syncfusion Feedback

Cell Button Firing Twice

Thread ID:

Created:

Updated:

Platform:

Replies:

49053 Sep 10,2006 09:52 AM UTC Nov 1,2006 03:23 AM UTC Windows Forms 7
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On September 10, 2006 09:52 AM UTC

Hi,

I have a cell button in a cell of my grid control. When i click the cell button, a context menu will show. I had met a problem that I need to click twice on the context menu bar then the context menu will just close. It seems the cell button has fired twice.

private void gctrXYZ_CellButtonClicked(object sender, GridCellButtonClickedEventArgs e)
{
this.gctrXYZ.ConfirmChanges();

if (e.ColIndex == 2)
{
Point ClickPoint = new Point(e.Button.Bounds.X, e.Button.Bounds.Y);

Point ScreenPoint = this.gctrXYZ.PointToScreen(ClickPoint);


Point FormPoint = this.PointToClient(ScreenPoint);

Point FinalPoint = new Point(FormPoint.X + 20, FormPoint.Y);

this.popupMenu1.Show(this, FinalPoint)
}
}


Administrator [Syncfusion]
Replied On September 11, 2006 05:54 AM UTC

Hi,

I tried to reproduce the issue in this sample, but could not get this issue using Essential version 4.2. What version of our libraries are you using?

http://www.syncfusion.com/Support/user/uploads/GridButtonPopmenu_5350a8d9.zip

Are you doing anything different than what the sample does?

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On September 11, 2006 12:09 PM UTC

I''m using the version 4.1.0.56.

Administrator [Syncfusion]
Replied On September 11, 2006 12:23 PM UTC

I couldn''t open the solution that you provided. I think maybe because of my syncfusion version is older than it.

Administrator [Syncfusion]
Replied On September 12, 2006 09:44 AM UTC

Hi,

Sorry for the inconvenience caused.

Here is a link for that sample.
http://www.syncfusion.com/Support/user/uploads/GridButtonPopmenu1_f53b2d39.zip

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On September 13, 2006 07:22 AM UTC

I still couldn''t open the solution. When i view the designer, it wrote:-
Could not load file or assembly ''Syncfusion.Grid.Windows, Version=4.301.0.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89'' or one of its dependencies...

I''m using the syncfusion version 4.1.0.56.
I had view the code that u provided, it seems nothing much different with mine one.

Anyway, thanks for the reply.

Liam Reilly
Replied On September 21, 2006 01:19 PM UTC

Hi there,
I am experiencing an identical issue with version 4.1.0.65, the Cell Button fires twice, or in some cases, several times.

Any ideas whats going on here?

Administrator [Syncfusion]
Replied On November 1, 2006 03:23 AM UTC

The reason that caused the cell button has been fired twice is i had accidentally instantiated two same cell buttons click event handler.

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.

Warning Icon 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.Close Icon

;