Link to home
Start Free TrialLog in
Avatar of trstill
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
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of trstill
trstill

ASKER

Jacques,
  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
Avatar of trstill

ASKER

Jacques,
  Just a follow up to say that worked exactly how I hoped it would.
Thanks for the help.
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.