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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Activating a cell in the KeyDown event

Thread ID:





4052 Apr 25,2003 09:15 AM UTC Apr 25,2003 03:58 PM UTC WinForms 2
Tags: GridControl
Olivier Choquette
Asked On April 25, 2003 09:15 AM UTC

I want my cell to enter the "edit" mode only when text is typed into it. I set the ActivateCurrentCellBehavior to GridCellActivateAction.None and do a BeginEdit in the overrided OnKeyDown method. The cell enters the edit mode but the first key stroke (the one that triggered the BeginEdit) is not added to the cell text. Olivier

Administrator [Syncfusion]
Replied On April 25, 2003 11:16 AM UTC

Are you calling the base class in your OnKeyDown override? You really should only have to set GridCellActivateAction.None. Pressing any key (that is not a navigation key like tab or arrows) on a cell should activate it even with GridCellActivateAction.None (unless you are using a particular celltype like Static that does not support editing, but it should work for the default TextBox). If you are not seeing this behavior, then its is probably a bug. What grid version are you using, and can you see this behavior in one of our samples so we can try to reproduce it here.

Olivier Choquette
Replied On April 25, 2003 03:58 PM UTC

Setting GridCellActivateAction.None fixed the problem... i just didnt notice it sorry, my mistake :) Olivier


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

Live Chat Icon For mobile
Live Chat Icon