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

Access to properties

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.


2 Replies

AD Administrator Syncfusion Team 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.



AD Administrator Syncfusion Team June 25, 2008 11:04 AM UTC

It's working. Thank you for the solution!


Loader.
Live Chat Icon For mobile
Up arrow icon