I\'m trying to use a progress dialog, while filling a datagrid, but I get the following error: \"Only the original thread that created a view hierarchy can touch its views\", th
you cannot use dlg.Dismiss(); inside ThreadPool.QueueUserWorkItem, move it before try close sign