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.

Difficulty editing a cell after EndEdit event

Thread ID:

Created:

Updated:

Platform:

Replies:

42678 Apr 4,2006 09:45 AM Apr 5,2006 05:41 PM Windows Forms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On April 4, 2006 09:45 AM

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 12:21 PM

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

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

I''m using the same version 4.102.0.50 (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 12:26 PM

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 05:41 PM

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.

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.

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.

;