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.
I have a tab control with a grid on each of three tabs and each grid sourced from a different table in the same dataset. When I try to update the dataset from a database on one thread I find that I can''t navigate around the UI on another thread and seem to go into a deadlock condition.
ADAdministrator Syncfusion Team December 20, 2004 07:38 PM UTC
>I have a tab control with a grid on each of three tabs and each grid sourced from a different table in the same dataset. When I try to update the dataset from a database on one thread I find that I can''t navigate around the UI on another thread and seem to go into a deadlock condition.
>Having investigated further, I now see that it is nothing to do with updating the same dataset on one thread that I am navigating around on another thread. I am experiencing a massive performance problem when I update any dataset on one thread and then try and move between tabs with grids on another thread. I guess this a bit vague to answer!
ADAdministrator Syncfusion Team December 20, 2004 08:26 PM UTC
What version of our controls are you using? If it is earlier than 2.1.0.9, you should try a later version.
The GridDataBoundGrid reacts to the datasource being updated by listening to events. The event handlers are protected with grid.InvokeRequired checks. If the event was raised on teh thread that did not create the grid, then a grid.Invoke is used to put the call onto the grid''s thread. Otherwise, things lock up. This does mean that if the datasource is being updated very quickly, then there is constant switching of threads which can slow things down. One thing you can try is to batch your updates in another datatable, and then do a dataset.Merge to do all the updates at once, and you could make sure this batch update happens on the grid''s thread.