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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Access to properties

Thread ID:

Created:

Updated:

Platform:

Replies:

74676 Jun 24,2008 01:42 PM UTC Jun 25,2008 11:04 AM UTC WinForms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On June 24, 2008 01:42 PM UTC

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 11:27 PM UTC

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 11:04 AM UTC

It's working. Thank you for the solution!


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

;