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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridControl WPF, CellClick

Thread ID:





104409 Jul 17,2012 10:45 AM UTC Jul 18,2012 05:41 AM UTC WPF 1
Tags: GridControl
xi wang
Asked On July 17, 2012 10:45 AM UTC


There is a strange behavior of the GridControl.

When I click on a cell, it is immediately highlighted (e.g. border of the cell is highlighted) then the cell click event is fired, no matter what I do, I cant get rid of it, any ideas?

Rajasekar [Syncfusion]
Replied On July 18, 2012 05:41 AM UTC

Hi Wang,


Thank you for your update.


Yes, whenever you click on the any cell, the selection will be drawn immediately to set the current cell  because without setting current cell prior to the Click event, you cannot  access the current cell in the CellClick event of the GridControl. This is our default behavior.


Suppose, if you are interested to cancel the selection changes means, then you can achieve this by handling the SelectionChanging event of the GridControl.Model like shown below.


        this.grid.Model.SelectionChanging += new GridSelectionChangingEventHandler(Model_SelectionChanging);
        void Model_SelectionChanging(object sender, GridSelectionChangingEventArgs e)
            e.Cancel = true;


Please let us know if you have any queries.





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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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