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.
Syncfusion Feedback

Copying data from virtual grid - poor performance

Thread ID:

Created:

Updated:

Platform:

Replies:

40110 Jan 25,2006 03:25 PM UTC Jan 27,2006 04:07 AM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 25, 2006 03:25 PM UTC

I''m using a virtual grid to display a large quantity of data. My code in QueryCellInfo has to parse some XML, create controls in each cell and set the cell text, and it takes 20-30 seconds to do all of this. This is ok, but the problem comes when I select all the data in the grid and try to copy it (using ctrl-C). My application appears to hang at this point, and debugging shows that the QueryCellInfo code is being called. I would expect that at worst it would take another 20-30 seconds to do the copy, but instead I''m left waiting forever. Any ideas what might be going on? Thanks Akash

Administrator [Syncfusion]
Replied On January 27, 2006 04:07 AM UTC

Hi Akash, try handling the ClipboardCopy event. There you could access your data directly and copy them to the clipboard. After you copied the data to the clipboard set e.Handled = true and e.Result = true. This ensures the grid won''t handle the event itsself. Also, make sure you set grid.Model.CutPaste.ClipboardFlags = GridDragDropFlags.Text; Stefan

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.

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

;