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.

Copy & Paste

Thread ID:

Created:

Updated:

Platform:

Replies:

28648 May 5,2005 08:14 PM May 6,2005 04:28 AM Windows Forms 3
loading
Tags: GridControl
Bernard Herrok
Asked On May 5, 2005 08:14 PM

Hi, When a user copies and pastes a value in a DataboundGrid and then moves to the next row, the pasted values disapear while the typped in values remain. By the way i''m using this code in the SaveCellFormating event, don''t know if it has anything to do with it. If e.Text = "-" Then e.Style.CellValue = 0D e.Handled = True End If Any ideas?

Administrator [Syncfusion]
Replied On May 5, 2005 08:49 PM

You might try handling the grid.Model.ClipboardPaste event. In your handler, try calling grid.CurrentCell.EndEdit and then grid.Binder.EndEdit. If that does not handle this problem, what version are you using? Can you see the problem in one of our samples, or can you upload a sample project showing the problem?

Bernard Herrok
Replied On May 5, 2005 11:49 PM

I don''t get what you mean. Do you mean this: Private Sub ShopLeaseLevelAccrualsDataGridModel_ClipboardPaste(ByVal sender As Object, ByVal e As Syncfusion.windows.forms.grid.GridCutPasteEventArgs) CType(sender, GridDataBoundGrid).CurrentCell.EndEdit() CType(sender, GridDataBoundGrid).Binder.EndEdit() End Sub when i do that, i can''t paste at all. >You might try handling the grid.Model.ClipboardPaste event. In your handler, try calling grid.CurrentCell.EndEdit and then grid.Binder.EndEdit. > >If that does not handle this problem, what version are you using? Can you see the problem in one of our samples, or can you upload a sample project showing the problem?

Administrator [Syncfusion]
Replied On May 6, 2005 04:28 AM

Here is a sample. Can you tell me how to see the problem in this sample, or upload a sample showing the problem? Also, what version of our libraries are you using? http://www.syncfusion.com/Support/user/uploads/GDBG_CopyPaste_f1541fea.zip

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.

;