Re: Show progress timer while databinding
- From: "Ben Voigt [C++ MVP]" <rbv@xxxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 17:08:08 -0500
David Smith wrote:
I have an app that shows the time it takes to execute a search, much
like SQL Management Studio, but the app behaves as though the
System.Windows.Forms.Timer gets blocked while binding the results to
the grid. As you might expect, I execute the search in the background
but I have to return to the UI thread to bind the results. While
databinding, it appears as though the Timer.Tick event never gets
fired, so my timer freezes at the time before the databinding, which
could be the longest running part of the search.
Is my supposition that the databinding blocks the Timer correct? Is
this where I should use System.Threading.Timer instead? Thanks.
You could start a new UI thread and show your progress bar there.
.
Relevant Pages
- Re: Template Column DataBinding
... I'll tell you that, generally, late binding is a bad idea. ... > template columns within datagrids since I can make things really flexible ... > to do is add a CommandName and CommandArgument to my datagrid and have the ... > databinding with TemplateColumns, ... (microsoft.public.dotnet.framework.adonet) - Re: Adding record to disconnected DataTable slow
... Okay so now that we have the problem zero'ed down to databinding being ... If you must need updateable datagrid - keep using binding, ... instead bind with an array returned by datatable.select (i.e. ... >> Hey Turtle, ... (microsoft.public.dotnet.framework.adonet) - RE: Since when is a Refresh a PostBack?
... This is a matter of where you're doing your databinding and how... ... Say you have a grid and you have something like this you may have trouble ... and not updating the page if it is a postback. ... However, I notice that if I hit my browser's refresh button, the page ... (microsoft.public.dotnet.framework.aspnet) - Re: Is Databinding Professional Grade?
... >> I actually am pretty comfortable with databinding, datasets, etc. ... But by and large, the binding ... >> put a dataset on each data access form, graphically set up binding, and ... > I'm a big fan of creating a data class with static properties. ... (microsoft.public.dotnet.framework.windowsforms.databinding) - RE: Dataset acting strangely
... I did not see any different about binding to Text property or your MyText ... complex databinding, we should use DataBindings property to get the Binding ... I will wait for your further feedback. ... (microsoft.public.dotnet.framework.windowsforms) |
|