Trying to make an image column sortable in our DataGridView - all that's displayed is System.Drawing.Bitmap instead of the image
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
.
精彩评论