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 - Changing Double Click Behaviour

Thread ID:

Created:

Updated:

Platform:

Replies:

48531 Aug 30,2006 04:55 AM Aug 31,2006 08:14 AM Windows Forms 3
loading
Tags: GridControl
Badri Rajani Kanth
Asked On August 30, 2006 04:55 AM

Hi,

I am using V 3.2.1.0, GGC.
When we double click on GGC, the events fired in the order are:

_SelectedRecordsChanging
_SelectedRecordsChanged
_TableControlCellClick
_TableControlCellDoubleClick

These will change the record selection also.

I have different code snippets in each of the event handlers. And when double clicked I want to execute only _TableControlCellDoubleClick. I dont to want to change the record selection. I want something like "TableModel.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;" which makes only left click to select the record.

Can you please let me know how to achieve this?

Rgds
Rajani Kanth Badri

Administrator [Syncfusion]
Replied On August 30, 2006 07:13 AM

Hi Rajani,

This is an expected behavior. By default, we do not provide support for this. As a workaround, you can add the selected record in TableControlCellDoubleClick event using SelectedRecords.Add method. Below is a code snippet.

//for old records.
e.TableControl.Table.SelectedRecords.Add(Oldrecs)

Thanks for choosing Syncfusion Products.
Regards,
Haneef

Badri Rajani Kanth
Replied On August 30, 2006 08:14 AM

Hi Haneef,

Thank You.

But sorry if there is confusion in my request.

I dont want to change the record selection in Double Click Event. What I mean to say is, say a record "A" is selected. And I Double click on record "B", then selection "A" should remain. only code in Double click should be executed.
But when I single click record "c", it should be selected. Similarly, moving arrow keys should select records.

On Double click, I dont want the below events to be fired.
_SelectedRecordsChanging
_SelectedRecordsChanged
_TableControlCellClick

Rgds
Rajani Kanth badri

Administrator [Syncfusion]
Replied On August 31, 2006 08:14 AM

Hi Rajani,

Please refer this.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=48558

Thanks,
Haneef

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.

;