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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Disable Reflection on column mapping

Thread ID:

Created:

Updated:

Platform:

Replies:

116326 May 14,2014 06:28 PM UTC May 20,2014 11:59 AM UTC WinForms 2
loading
Tags: GridGroupingControl
Mark
Asked On May 14, 2014 06:28 PM UTC

Is it possible to disable reflection from being used to generate columns and add the columns programmatically?

I'm currently using a UniformChildList to populate the GridGroupingControl, but the base classes in my list extends from a super base class that is causing thousands of properties to be analyzed and therefore causing the control to load very slowly.


Mark
Replied On May 15, 2014 03:09 PM UTC

OK, so I found that if I set the following reflection will not happen on the child classes and I can add my own columns to the table:

TableDescriptor.Columns.Modify();

My only problem now seems to be that the control is still very slow to load.

Any thought?

Thanks,
Mark

Solai A L [Syncfusion]
Replied On May 20, 2014 11:59 AM UTC

Hi Mark,

Sorry for the delay.

We would like to suggest you few properties of GGC. These properties would improve the performance.Kindly refer the below provided code snippet.

Code Snippet:

#region

     this.gridGroupingControl1.AllowedOptimizations = Syncfusion.Grouping.EngineOptimizations.RecordsAsDisplayElements;

     this.gridGroupingControl1.AllowSwapDataViewWithDataTableList = true;

     this.gridGroupingControl1.UseOldListChangedHandler = true;

     this.gridGroupingControl1.UseDefaultsForFasterDrawing = true;

     this.gridGroupingControl1.UpdateDisplayFrequency = 100;

     this.gridGroupingControl1.InvalidateAllWhenListChanged = true;

     GridControlBase.UseOldHiddenScrollLogic = true;

     #endregion

If still the issue is not resolved. Please provide us a sample reproducing the issue. So, that it would be easy for us to provide a prompt solution.

Please let us know if you have any concerns.

Thanks & Regards,

AL.Solai.


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

;