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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

The first key / character is lost when entering it into a cell

Thread ID:





11709 Mar 13,2004 10:03 PM UTC Mar 15,2004 02:39 PM UTC WinForms 2
Tags: GridControl
Asked On March 13, 2004 10:03 PM UTC

You must be typing into a cell which has an image. You then must click in the cell to get the cursor blinking. The first character you type clears the image, and the text of the cell is empty. If you do not have a cursor blinking in the cell when the image is in it, then it will not clear the cell''s text, and your first character will remain in the cell (and the image will be cleared). This can be done by using the arrow keys to move to the cell. Here is the code which clears out the image: this.gridControl.CurrentCellValidateString += new Syncfusion.Windows.Forms.Grid.GridCurrentCellValidateStringEventHandler(this.gridControl_CurrentCellValidateString); // ... code ... private void gridControl_CurrentCellValidateString(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellValidateStringEventArgs e) { GridStyleInfo cellStyle = gridControl[gridControl.CurrentCell.RowIndex, gridControl.CurrentCell.ColIndex]; if (cellStyle.ImageIndex != -1 && cellStyle.ImageIndex != (int)StateIcons.ReadOnly) { cellStyle.ImageIndex = -1; } } Thanks for any assistance with this dissapearing first character.

Administrator [Syncfusion]
Replied On March 13, 2004 10:54 PM UTC

Attached is a sample that implements the behavior I think you want by handling CurrentCellStartEditing and CurrentCellDeactivated without losing the first keystroke. 9848-1_2307.zip

Replied On March 15, 2004 02:39 PM UTC

Thanks, you have solved the issue.


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