GridGroupingControl - Changing Double Click Behaviour

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

3 Replies

AD Administrator Syncfusion Team August 30, 2006 11:13 AM UTC

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


BR Badri Rajani Kanth August 30, 2006 12:14 PM UTC

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


AD Administrator Syncfusion Team August 31, 2006 12:14 PM UTC

Hi Rajani,

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

Thanks,
Haneef

Loader.
Up arrow icon