Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
Is there a way to shorten SetCustomProperty runtime?
posted

Please help me!!

When you run the source code below, takes about 20 minutes of time.

Is there a way to shorten the time?

 

private Infragistics.Win.UltraWinGanttView.UltraGanttView _gantt;

FOR (int i = 0 ; 1000 ; i++)

{

 _gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_01", "1111");

 _gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_02", "2222");

 _gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_03", "3333");

 _gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_04", "4444");

_gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_05", "5555");

_gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_06", "6666");

_gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_07", "7777");

_gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_08", "8888");

_gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_09", "9999");

_gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_10", "AAAA");

_gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_11", "BBBB");

_gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_12", "CCCC");

_gantt.CalendarInfo.Tasks[i].SetCustomProperty("CUSTOM_13", "DDDD");

}