How to add progressbar column to DataGridView in C # (Winforms)

Is there a way to add a progress bar to a datagridview. Actually I need to show the progress for each row (task) in the datagridview.

Let me get some sample code or links to get this functionality.

+4
source share
2 answers

Check this MSDN post which has some sample code inside.

Hope this helps.

+5
source
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 the progress bar. check

-2
source

All Articles