How to display an icon in a cell of a grid

missshhhh

Member
Joined
Nov 26, 2006
Messages
13
Programming Experience
3-5
Hi i have tried to display an icon from the imageList to a button and it worked. I first configured the button by: openButton.imageList = myImageList

But now I need to display an icon to a cell in a grid but the output shows System.Drawing.Bitmap instead of the icon. I cannot configure the grid to have an imageList because the grid does not have such property.

Please help!
 
Set the column to type DataGridViewImageColumn

Thread was moved to Winform Grids forum.
 
How?

Im sorry, I am just new to VB.NET. I have a DataGridView that has 7 columns and only the first column would have icons on it. How would I set the 1st Column to DataGridViewImageColumn? Thanks!
 
Select the control and click the 'arrow' on top right corner, select 'Edit columns..'. Or in properties of the DGV find the Columns property and click the '...' button. Use the Edit Columns dialog to create/edit/delete/reorder columns.
 
Back
Top