Add image to combobox of datagridview

  • Thread starter Thread starter booboo_US
  • Start date Start date
B

booboo_US

Guest
Hi:

I am using VB.net 2019. I have a unbound datagridview and one of the columns is a combobox. On my form, I also have an imagelist that has 4 pictures in it. See the sample images below. Is there a way to show the pictures in the comboxbox instead of the text (for the datagridview)?

I know how to show images for a stand alone combobox by using the DrawItem and MesureItem events. However, I could not see similar events for the datagridview.

I would appreciate a sample code. Thank you.

Bob

1458311.png 1458312.png 1458313.png 1458314.png

Continue reading...
 
Back
Top