views:

32

answers:

0

I have a datagrid in which i have textblocks as one column.Then in the next column i have progress bar over which there is a textblock.On loading row of datagrid,i add these three into lists of textblock and progressbar.I start the first progress bar and after 15-20 minutes next progress bar is started.The next progress bar is getting started fine and after 20 minutes it is getting invisible.The problem is that if i try to make textblock invisible,then the whole Datagrid gets invisible and stops working.After all the tasks in the Datagrid are complete i need to make DataGrid invisible and also when i try to do so,the grid becomes invisible and no other event gets fired....

e.g

List<Textblock> txtlist=new List<Textblock>();

i=1;

txtlist[i].Visibility=Visibility.Collapsed;