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.

Access to properties

Thread ID:





74676 Jun 24,2008 09:42 AM Jun 25,2008 07:04 AM Windows Forms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On June 24, 2008 09:42 AM

My bounded object has three public properties (S1, S2, S3). I defined in my GridGroupingControl only two columns for presentation properties S1 and S2. In runtime, when I assign DataSource to the grid, it accesses to property S3. Why? How can I prevent access to the property from Grid?
Thank you.

Administrator [Syncfusion]
Replied On June 24, 2008 07:27 PM

The grid by default caches the original values for each record for various reasons. If you do not want the grid to do this, you can set

gridGroupingControl1.CacheRecordValues = false;

Setting this property will prevent the grid from accessing the properties not used in the TableDescriptor.Columns collection.

Another way to handle this is to have your list object implement ITypedList, and in the GetItemProperties implementation return only the property descriptors for S1 and S2.

Administrator [Syncfusion]
Replied On June 25, 2008 07:04 AM

It's working. Thank you for the solution!


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.