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.

GridGroupingControl TableControlCellDoubleClick event problem

Thread ID:

Created:

Updated:

Platform:

Replies:

59954 Apr 25,2007 06:39 AM Apr 26,2007 04:09 AM Windows Forms 2
loading
Tags: GridControl
Chong Wong
Asked On April 25, 2007 06:39 AM

Hi,

I am using Syncfusion 4.4, .net 1.1, VS2003.

I am using your sample to demonstrate: Grid.Grouping samples -> Samples -> Getting Started -> DataBindingVS2002_2003.

I have set the following properties on the GGC as i want the selected row to be higlighted as one entire row so that i can retrieve the 'record id' for whatever purpose:
GGC Table Options:
Allow Selection = None,
ListBoxSelectionColorOptions = ApplySelectionColor,
ListBoxSelectionCurrentCellOptions= HideCurrentCell,
ListBoxSelectionMode = One.

My requirement is as follows: Double clicking with Left Mouse Button on a record row in the Grid Grouping Control will bring up another form onto the screen. So i handle the relevant GGC TableControlCellDoubleClick event as follows

{
System.Windows.Forms.Form FormPopup frmTest = new FormPopup();

frmTest.Show();
}

The problem is that the popup form ALWAYS appears behind the Main Form with the GGC. It should appear on top of the main form, but doesn't. I've tried all sorts of methods, but can't get the popup form to appear on top. I don't want the popup form to be the topmost form even when it's deactivated, so setting the popup form property TopMost to True is not an option.

Strange thing is that when i use exactly the same code in the GGC TableControlCellClick event (single click), the popup form appears on top as expected. So it works for single click event, but not properly for double click event.

I have noticed this problem in Syncfusion 3.2, 4.2, and now 4.4.

I have recreated the problem in the attached file using your shipped Sample Browser example.

Please help!!

Thanks,
Chong





GGC CellDoubleClick Problem.zip

Rajagopal [Syncfusion]
Replied On April 25, 2007 04:39 PM

Hi Chong,

You can disable the GridGroupingControl when you doubleclick on the cell and enable it in the Form's Activated event. This would resolve this issue. Please refer the modified sample below that works as intended.

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

Let us know if you need any further help.
Regards,
Rajagopal

Chong Wong
Replied On April 26, 2007 04:09 AM

Hi Rajagopal,

This works perfect!

Thanks for your help and the quick reply!

Kind Regards,
Chong

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.

;