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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Object in GridStyleInfo.Tag being cloned

Thread ID:





14784 Jun 4,2004 04:21 AM UTC Jun 4,2004 06:13 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On June 4, 2004 04:21 AM UTC

I want to take GridStyleInfo.Tag as a reference to a object.But after this: this.grd[i,j].Tag=myObject; I found the object stored in Tag is a object cloned from myObject.How to avoid cloning take place? My Suite Version is I found in Doc :"set StylePropertyInfo.IsCloneable = false and StylePropertyInfo.IsDisposable = false or implement IStyleCloneable to avoid cloning and disposing of objects assigned to Tag".Is it implemented?

Administrator [Syncfusion]
Replied On June 4, 2004 06:13 AM UTC

IsCloneable and IsDisposable are static properties that you can set once at start up (before you set any tags) to indicate how the grid handles tags. GridStyleInfoStore.TagProperty.IsCloneable = false; GridStyleInfoStore.TagProperty.IsDisposable = false; If you need to have a mixed of cloneable and non-cloneable tags, then your objects would have to implement ICloneable for the ones you do not want cloned, and do nothing in their implementation methods.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon