简体   繁体   English

C#4 - 具有适当ProgressBar控件的DataGridView

[英]C# 4 - DataGridView with proper ProgressBar control

I need to display a progress bar in a DataGridView. 我需要在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 ? 有没有办法直接在DataGridView单元格中使用System.Windows.Forms.ProgressBar?

Not without drawing it into the cell. 不是没有把它拉进牢房。

However, you can check out DevExpress's DataGrid. 但是,您可以查看DevExpress的DataGrid。 It allows you to use a ProgressBar or any other control in any cell. 它允许您在任何单元格中使用ProgressBar或任何其他控件。 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 这是链接: http//devexpress.com/Products/Index/Grids.xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM