views:

1797

answers:

2

Is there any way so that I add a progress bar column in datagridview. Actually I need to show the progress for each rows (task) in the datagridview.

Let me know some sample code or links to acheive this functionality.

+1  A: 

Check this MSDN post that has sample code inside.

Hope this helps.

Konstantinos
That is more helpful than the accepted answer.
Mathieu Pagé
A: 
int percent = (int)(((double)progressBar1.Value / (double)progressBar1.Maximum) * 100);

progressBar1.CreateGraphics().DrawString(percent.ToString() + "%", new Font("Arial", (float)8.25, FontStyle.Regular), Brushes.Black, new PointF(progressBar1.Width / 2 - 10, progressBar1.Height / 2 - 7));

this is the code for progress bar.. check out

Dilse Naaz
Downvoted as this doesn't answer the question at all. I don't understand why it was accepted.
Mathieu Pagé