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

Difficulty editing a cell after EndEdit event

Thread ID:





42678 Apr 4,2006 01:45 PM UTC Apr 5,2006 09:41 PM UTC WinForms 4
Tags: GridControl
Administrator [Syncfusion]
Asked On April 4, 2006 01:45 PM UTC

I am using a grid with the property Options.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell set (in case this matters). This gives me the feel I want where a user clicks on a cell or moves to it using arrow keys, etc and can just type a new value to begin editing the cell. This works fine. I have added some code behind various buttons on my form to catch any cell edits that are partially completed when the button is clicked - this code is basically of the form: If Grid.CurrentCell.IsEditing Then Try Grid.CurrentCell.EndEdit() This also works fine. My problem is that after the above code runs to force an EndEdit event on the cell, if the user simply clicks on a cell they can''t just type to begin editing that cell. They have to double click or press F2 to put the cell into edit mode. Am I doing something wrong?

Jayakumar Natarajan [Syncfusion]
Replied On April 4, 2006 04:21 PM UTC

Hi Bob, What version of the Grid are you using? I tried reproducing the similar behavior in this sample (ver. Can you help us reproduce the issue in a sample? Thanks, Jay N

Administrator [Syncfusion]
Replied On April 4, 2006 11:52 PM UTC

I''m using the same version (also using VB instead of C# but I doubt that matters). I tried but couldn''t reproduce the problem by adding to your sample. Maybe my problem has something to do with the fact that when the button is pressed I basically have to use the EdnEdit to capture the updated value, store it in a database and then repopulate the grid with data, including resetting the number of rows & cols, the number of frozen rows & cols, etc?

Administrator [Syncfusion]
Replied On April 5, 2006 04:26 PM UTC

Hi Bob, Refer to the following VB sample demonstrates your issue. Please let us know if this helps or try modifying this sample accordingly to reproduce the issue here. Sample : CurrentCellBehaviour_GC Best regards, Madhan

Administrator [Syncfusion]
Replied On April 5, 2006 09:41 PM UTC

I tried using your sample and modifying to add the relevant code from my application, but was unable to reproduce the following. It''s a fairly minor issue for me, so unless you have any ideas I don''t think it''s worth spending anymore time on. Thanks for your help - sorry I couldn''t get you a reproducible case.


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

or the page will be automatically redirected to 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