Possible Duplicate:
Backgroundworker won’t report progress
I am using Background worker in WPF. the problem with is it is not reporting progress. It just update the ProgressBar when it completes task. I want to update it regularly while background task is running. Here is my sample code.
bworker_doWork(...)
{
BindData();//this is database operation which binds data to datagrid.
}
bWorker_ProgressChanged(...)
{
progressBar.Value=e.ProgressPercentage;//it doesnt update this value
}
bWorker_RunWorkerCompleted(..)
{
progressBar.Value=100;//max value. control comes here and updates the progress to max value.
}