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.

Cannot type in cell

Thread ID:

Created:

Updated:

Platform:

Replies:

29548 May 27,2005 10:06 AM May 31,2005 09:32 AM Windows Forms 3
loading
Tags: GridControl
Nicola
Asked On May 27, 2005 10:06 AM

Hello, I am using a dataBoundGrid and having problems typing in a cell. Whenever I go and try to override text in a cell the cursor kicks back to the first position in the cell. Has anyone ever seen this before? Thanks!

Administrator [Syncfusion]
Replied On May 27, 2005 11:39 AM

Are you handling any events like the keypress or keydown? If so, are you doing anything that might end the edit on the cell at that point (like CurrentCell.EndEdit or Currentcell.ConfirmChanges or minipulating the CurrencyManager in some manner)? If you can upload a sample showing the problem we can try to debug it here.

Nicola
Replied On May 31, 2005 08:46 AM

Hi Clay, Thanks for your response. I think I tracked down the problem. Would you be able to supply me with code to invalidate and refresh a range of cells. I tried the following piece of code but the cells don''t appear to redraw immediately. Thanks! m_grid.BeginUpdate(); m_grid.InvalidateRange(m_newUpdates); m_grid.EndUpdate(); m_grid.RefreshRange(m_newUpdates);

Administrator [Syncfusion]
Replied On May 31, 2005 09:32 AM

If you are calling InvalidateRange, you probably do not want to use BegiUpdate and EndUpdate. Try: m_grid.InvalidateRange(m_newUpdates); m_grid.Update();

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.

;