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.

CellDoubleClick event

Thread ID:

Created:

Updated:

Platform:

Replies:

116911 Jun 29,2014 06:29 PM Jul 9,2014 02:01 AM WPF 4
loading
Tags: GridDataControl
Yu
Asked On June 29, 2014 06:29 PM

Hi,

Does GridDataControl support CellDoubleClick event? How to enable cell level selection?

We would like to trigger some custom action when a cell is double clicked within the grid.


Thanks


Yu



Yu
Replied On June 30, 2014 06:52 AM

It seems the ClickCout of CellClick event arguments is doing the trick.

Akila Rajaram [Syncfusion]
Replied On July 8, 2014 10:13 AM

Hi Yu,

 

Thank you for contacting Syncfusion Support.

 

Query: Double click in GridDataControl?

Yes, you can use CellClick event and using ClickCount property in argument you can differentiate double click.

Code example:

public MainWindow()

        {

            InitializeComponent();

            this.grid.CellClick += grid_CellClick;

        }

void grid_CellClick(object sender, Syncfusion.Windows.Controls.Grid.GridCellClickEventArgs e)

        {

            if (e.ClickCount == 2)

            {

                //code for double click

            }

        }

 

Query: How to enable cell selection?

You can enable the cell level selection by setting ListBoxSelectionMode and AllowSelection properties in GridDataControl .

 

ListBoxSelectionMode="None"

AllowSelection="Cell"

 

Please refer the following sample:

Sample: Observable_Collection_Demo.zip

 

Please let us know if you have any queries

 

Regards,

Akila


Yu
Replied On July 8, 2014 03:13 PM

Thanks a lot. They works well.

Akila Rajaram [Syncfusion]
Replied On July 9, 2014 02:01 AM

Hi Yu,

Thanks for your update,

please let us know if you require further assistance.

Regards,

Akila


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.

;