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

CellDoubleClick event

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 10:52 AM UTC

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

Akila Rajaram [Syncfusion]
Replied On July 8, 2014 02:13 PM UTC

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 07:13 PM UTC

Thanks a lot. They works well.

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

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.

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

;