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
400
Performance if setting VisiblePosition
posted

Hi!

I have a loop that reorders all the columns of an ultragrid. Something like this:

foreach (var column in band.Columns) column.Header.VisiblePosition = positions[column.key];

After profiling my application I show that this code needs about 5 seconds to run, for about 15 columns. I tried using Suspend/ResumeLayout but it didn't help.

Is there anything that I can do?

Parents
No Data
Reply
  • 2197
    posted

    Hello Dimitris

    What version of Net Advantage are you using? I am assuming that the positions object in the code snippet is some collection of integers. How many columns does the grid have?

Children