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.

How to perform the copy/paste in the Foreign Key Reference column?

By default, the displayed cell value can be copied and pasted in any specified cell. In foreign key cell types, the copied values are the specific value members that have a foreign key reference of an object type. For example, while pasting the string type cell values to the foreign key cell and its foreign key is in the type of integer, the FormatException is thrown.

In order to copy-paste a cell value with a foreign key member field, a separate hash table instance can be used to store and retrieve the cell value from the foreign key cells and the corresponding display member values will be pasted in the required cell. This can be done through the PasteCellText event in the TableControl property.

Code Snippet

C#

 

 

 

VB

 

Screenshot

C:\Users\amresh.soundhrapandi\Desktop\kb\June_KB\Untitled.png

 

Sample Link

C#: Copy/Paste_CS

VB: Copy/Paste_VB

 

Article ID: Published Date: Last Revised Date: Platform: Control:
6926 06/08/2016 06/08/2016 Windows Forms GridGroupingControl
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.