none
progress bar manipulation inside datagrid ..?

    Question

  • hi friends..

    i have a grid in which there are 4 progress bars,after 20 minutes my "first"progress  bar goes to 65% and others still waiting  to start..

    wat i want is : after 65 % the first one should getting invisible and second one should start ..i have all these progress bars in a progress bars list..i start the first one from the list and so on... the problem which m facing is , after i tried to start the second one and make first one invisible the whole grid is getting hidden ...

    plz make a reply.

    thanx .....

    Tuesday, March 30, 2010 4:55 AM

All replies

  •  Hi,

    could u plz post your xaml and code snippets, for better idea?  Also explain your workflow.

    Thanks

    Tuesday, March 30, 2010 7:39 AM
  • Progress Bar added to list of progressbar

    List<progressbar> list=new List<progressbar>();

    private void gvTasklist_LoadingRow(object sender, System.Windows.Controls.DataGridRowEventArgs e)
            {
                j++;
               
                ProgressBar pr = gvServicesonIp.Columns[3].GetCellContent(e.Row).FindName("prgServer1") as ProgressBar;
             
              
                statustxt.Add(dr);
                tx.Text = common.Servers[p];
                tx.Tag = "tx" + i.ToString();
                pr.Tag = "pg" + i.ToString();
                list.Add(pr);
             
                j++;
                p++;           
            }

    Then

    i=0

     

    On timer tick

     private void Timer_Tick1(object sender, EventArgs e)
            {
             
                    p1Idea.Value += 1;
                    txtIdea.Text = Convert.ToInt32(p1Idea.Value).ToString() + "%";
                   
                   
               
            }

     

    Afer 20 minutes

    i++;

    ProgressBar px = p1[i - 1];
    px.Visibility = Visibility.Collapsed;

     This is when the whole grid becomes invisible

     

     

     

     

    Tuesday, March 30, 2010 7:55 AM