Avatar of trstill
 asked on

How to add an image button to a datagridview (vb)

Does anyone know how to add an image button to a datagridview using VB winforms?
It is very easy using .net for a .aspx page but this is for a VB Winforms console application.
What I'm really trying to accomplish is to have an image button that works for a Delete button to delete a row.
If the user clicks the image, they get a confirmation message and then I execute the delete code (I have the delete code already)

Thanks in advance
Visual Basic.NET

Avatar of undefined
Last Comment
Jacques Bourgeois (James Burger)

8/22/2022 - Mon
Jacques Bourgeois (James Burger)

View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.

  Thank you for the reply.  I'm very experienced with .net in .aspx pages but finding out you are correct about the datagridview being limited.
I will try your suggestion.
Do you happen to have any 3rd party development tools for the datagridview control?

Thanks again,
Tom Stilley

  Just a follow up to say that worked exactly how I hoped it would.
Thanks for the help.
Jacques Bourgeois (James Burger)

Personally, because I need to train programmers in .NET technologies, I try as much as possible to stick to .NET components. If I was to use third component technologies, I would lose a part of my expertise in Visual Studio as it is used by programmers who start to program in it, and I would not be able to answer properly to their questions.

So what I can say is only from what I hear from other programmers.

There are many replacements for the DataGridView, but most of them cost almost as much as Visual Studio itself (specially since Visual Studio Community edition is now a possible free replacement for the Professional edition).

The 2 most popular grids if hear of all the time are the grids sold by Infragistic and ComponentOne. What I hear is that the Infragistic grid has an incredible look and is relative easy to learn to use, but has some limitations. The ComponentOne has a learning curve and does not look as good, but if you need to do something, it always has it.
Your help has saved me hundreds of hours of internet surfing.