开发者

Trying to make an image column sortable in our DataGridView - all that's displayed is System.Drawing.Bitmap instead of the image

开发者 https://www.devze.com 2023-01-25 06:26 出处:网络
Have tried following the advice in the MSDN article: How开发者_如何学Go to: Customize Data Formatting in the Windows Forms DataGridView Control but when the form is shown all that\'s displayed in each

Have tried following the advice in the MSDN article: How开发者_如何学Go to: Customize Data Formatting in the Windows Forms DataGridView Control but when the form is shown all that's displayed in each cell is System.Drawing.Bitmap.

Must be something basic we're doing wrong.


Resolved - nothing wrong with the cell formatting code in the MSDN article. But in our version our column was of type DataGridViewTextBoxColumn when of course what's needed is a DataGridViewImageColumn.

0

精彩评论

暂无评论...
验证码 换一张
取 消