【问题标题】:Trying to make an image column sortable in our DataGridView - all that's displayed is System.Drawing.Bitmap instead of the image试图在我们的 DataGridView 中使图像列可排序 - 显示的只是 System.Drawing.Bitmap 而不是图像
【发布时间】:2010-11-17 09:37:18
【问题描述】:

已尝试遵循 MSDN article: How to: Customize Data Formatting in the Windows Forms DataGridView Control 中的建议,但是当显示表单时,每个单元格中显示的所有内容都是 System.Drawing.Bitmap

一定是我们做错了一些基本的事情。

【问题讨论】:

    标签: winforms sorting datagridview


    【解决方案1】:

    已解决 - MSDN 文章中的单元格格式代码没有问题。但在我们的版本中,我们的列是 DataGridViewTextBoxColumn 类型,当然需要的是 DataGridViewImageColumn

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-12
      • 2021-07-30
      • 2013-02-17
      • 1970-01-01
      • 1970-01-01
      • 2010-11-16
      相关资源
      最近更新 更多