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.

Custom SelectionController breaks SelectCell usage

Thread ID:





119219 May 24,2015 02:10 PM May 26,2015 12:58 PM WPF 3
Tags: SfDataGrid
Asked On May 24, 2015 02:10 PM

If I extend GridSelectionController (even without overriding any method), using SelectCell causes a NullReferenceException.

Will attach a test project if needed.

Muthukumar Kalyanasundaram [Syncfusion]
Replied On May 25, 2015 09:39 AM

Hi Yogesh,

Thank you for using Syncfusion products.

We analyzed your query.Please ensure, you are overriding correct selection controller based on SfDataGrid.SelectionUnit. Please refer the below table,


SelectionController to override



Cell or Any


If you are facing the mentioned issue after overriding right selection controller also then please update us with sample to provide better solution.


Muthukumar K

Replied On May 25, 2015 02:42 PM

Thanks a lot. I was using GridSelectionController instead of GridCellSelectionController. That fixed it.

I have one more query. If I use a GridNumericColumn cell in the grid, a return/enter key never executes either of the ProcessKeyDown or HandleKeyDown methods but every other key like Esc or Tab does. How can I fix that?

Muthukumar Kalyanasundaram [Syncfusion]
Replied On May 26, 2015 12:58 PM

Hi Yogesh,

Thanks for the update.

We have analyzed your query but we are unable to reproduce the reported issue with "enter key never executes either of the ProcessKeyDown/HandleKeyDown methods" at our end. For your reference,please review our sample below.Please modify this sample to show the issue being reproduced and send it back to us. This will help us proceed with the solution.



Muthukumar K


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.