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.

ApplyFormattedText not working after a Paste

Thread ID:

Created:

Updated:

Platform:

Replies:

27947 Apr 20,2005 01:04 PM Jun 28,2005 11:43 AM Windows Forms 5
loading
Tags: GridControl
Jan Eugenides
Asked On April 20, 2005 01:04 PM

I have a simple search and replace routine that uses ApplyFormattedText to put the new data into some cells on a bound grid. Works fine, until you do any copy/paste anywhere in the grid. After that, the ApplyFormattedText no longer modifies the cell. It appears to succeed, but the data doesn''t appear in the grid, nor is the underlying data modified. Ever seen this?

Administrator [Syncfusion]
Replied On April 20, 2005 02:00 PM

Haven''t really seen this before. Are you calling grid[row,col].ApplyFormattedText? You might check your output window to see if there are any exceptions being thrown that might affect this. I tried to reproduce this problem this sample, but could not. http://www.syncfusion.com/Support/user/uploads/DataGrid_CalculatedCols_31cd07f6.zip Can you see it in this sample?

Jan Eugenides
Replied On April 20, 2005 02:17 PM

I think I found the issue, by tracing into the CutPaste.Paste routine. Our code is using DirectSaveCellInfo=true, and at the end of the CutPaste.Paste routine, the syncfusion routines set DirectSaveCellInfo=false. After this our grid of course behaves strangely. I put in a line to explicity set DirectSaveCellInfo back to true after the paste, and now it all works again. The question is, why is the Paste setting this value?

Administrator [Syncfusion]
Replied On April 20, 2005 02:45 PM

The paste does this to prevent CurrencyManager position from changing if you paste across several rows. But we should save the setting before we cahnge it and restore it to what it was previously after we use it instead of just setting it back to false. I will forward this onto the grid architect to see if he will make this change. Until there is a build that has this modified, you can try handling the grid.Model.ClipboardPasted event and set it back to true in your handler.

Administrator [Syncfusion]
Replied On June 28, 2005 11:22 AM

Was this issue already fixed in latest release? >The paste does this to prevent CurrencyManager position from changing if you paste across several rows. > >But we should save the setting before we cahnge it and restore it to what it was previously after we use it instead of just setting it back to false. I will forward this onto the grid architect to see if he will make this change. > >Until there is a build that has this modified, you can try handling the grid.Model.ClipboardPasted event and set it back to true in your handler.

Administrator [Syncfusion]
Replied On June 28, 2005 11:43 AM

No. This is still an open issue. http://www.syncfusion.com/support/issues/grid/Default.aspx?ToDo=view&questId=462

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.

;