Home Forums WinForms controls Xceed Grid for WinForms Trace population

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13368 |

    Hi. I have a grid displaying a large DataSet. Populating the grid seems to be quite slow so I am going to take some remedial action, but there are lots of other operations performed before and after the DataSource property has been set which might be slowing things down.

    How can I trace the population of the grid itself to see if this is the bottleneck, and also measure whether I am improving population times by changing the structure of the data? Are there any suitable begin/end events I can attach to?

    Thanks

    kh

    Imported from legacy forums. Posted by kh (had 1960 views)

    User (Old forums)
    Member
    Post count: 23064

    You can use a profiler, like ANTS Profiler. It shows you which methods are called how many times, and how long it takes.

    Tip: Always put your population code between GridControl.BeginInit and GridControl.EndInit, like this:<code>GridControl1.BeginInit();
    GridControl1.DataSource = DataSet1;
    GridControl1.DataMember = “Table1”;
    GridControl1.EndInit();</code>

    Imported from legacy forums. Posted by Tommy (had 2880 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.