3

I need to display a progress bar in a DataGridView.

I've searched around and I've found many (many, many, ...) implementations that basically render a progress bar by drawing it into the cell.

Isn't there a way to use a System.Windows.Forms.ProgressBar directly in a DataGridView cell ?

Community
  • 1
  • 1
Ben
  • 20,737
  • 12
  • 71
  • 115

1 Answers1

1

Not without drawing it into the cell.

However, you can check out DevExpress's DataGrid. It allows you to use a ProgressBar or any other control in any cell. I use it and found that is is much easier to use and customize.

Here's the link : http://devexpress.com/Products/Index/Grids.xml

Jesse Bunch
  • 6,651
  • 4
  • 36
  • 59
  • Thanks for the suggestion. I'm not sure about forking out that much extra just to get the functionality. Do you know why it's not possible without drawing it into the cell? – Ben Feb 17 '11 at 04:17
  • I wonder how DataGridView does it to render a Checbox column.. I essentially want the same but with a Progressbar instead of the checkbox – Ben Feb 17 '11 at 10:07
  • @Ben. I understand completely. It is a lot of money, but is mucho worth it. The data grid allows you to choose a checkbox, but what it's really doing behind the scenes is exactly what you'll have to do in order to get a progressbar in there. The reason you have to do is is simply because Microsoft hasn't abstracted that for you as they did with the checkbox. – Jesse Bunch Feb 17 '11 at 15:34