Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Related to Copy and Paste function of the CExtGridWnd. Collapse All
Subject Author Date
Changhoon Ahn Dec 11, 2005 - 10:30 PM

Hello.


 


I want to use Copy & Paste function of the CExtGridWnd class.


Unfortunately, I can not find above function in the CExtGridWnd.


Would you please let me know whether the function exist in the CExtGridWnd or not?


If the function is already implemented in the CExtGridWnd, then please let me know the usage.


 


I will appreciate your reply.


 


Best regards.

Technical Support Dec 12, 2005 - 1:09 PM

The grid window is designed as a general purpose control for displaying table like data, where each cell object is an instance of some cell class which keeps its specific data and implements its behavior. The grid window knows nothing about which kind of data is stored in cell objects and which behavior they implement. So, that is why we did not include built-in copy/paste API. All the grid cells support run-time type information, serialization, cloning and assignment features. These features make them ready for the copy/paste operation, but generally the grid window is unable to know whether the pasted cells should replace instances of existing cells independently from cell types or whether the data type conversion should be performed instead. This is a very important detail because some particular grid may need to keep cells of appropriate type in some columns and/or rows.