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?
Imported from legacy forums. Posted by kh (had 1960 views)
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)