The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Which event I can catch when the grid finish updating data?
Basically I want to calculate how much time does the grid cost to populate data from Data View.
Thanks!
ADAdministrator Syncfusion Team June 10, 2005 06:27 AM UTC
Hi,
if it is a GridGroupingControl then you can check the time it needs by forcing the grid to populate the records. This can be done by checked grid.Table.Records.Count as an example.
E.g.
int time = Environment.TickCount;
grid.DataSource = ds;
int count = grid.Table.Records.Count; // will initialize the records.
int elapsedTime = Environment.TickCount - time;
For a grid databound grid the records will be initialized the moment you set the datasource.
int time = Environment.TickCount;
grid.DataSource = ds; // will initialize the records.
int elapsedTime = Environment.TickCount - time;
See also this thread if you are interested in specific load-time optimizations for the grouping grid: http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=26047. We have a sample ready that we can provide if you are interested in this.
Stefan
>Which event I can catch when the grid finish updating data?
>
>Basically I want to calculate how much time does the grid cost to populate data from Data View.
>
>Thanks!