We help IT Professionals succeed at work.

VB6 question - How to display image in datagrid column when only the image path is stored in db.

uzairp
uzairp asked
on
2,137 Views
Last Modified: 2007-12-19
Hi Experts,
One column in my Datagrid is bound to a text column which has the path of an image stored in sql database. Is there a way to display that image in the datagrid column?
/Uzair
Comment
Watch Question

Using Datagrid, not that easily!
but you can use lots of fantastic ActiveX controls to do that in a great way!
I my self advice you to use the component from VideoSoft (who is the author of most of the grids, published in VisualStudio by Microsoft) named:
VSFlexGrid 8.0
http://www.videosoft.com/products.aspx?ItemType=1&TabTypeID=1&PanelIndex=13&TabMapID=25&Itemid=3&Tabid=31&SubCategoryTypeID=0
It includes too many samples that shows you how to do that...
it has a property names: CustDataPict that you can easily set your pictures to show in columns...
here is the sample of that compnent:

CustDataPict
Product:       VSFlexGrid Pro
Language:       VB
Size:       6 KB
Summary:       Map data values into pictures using the ColImageList property.

This project shows how you can use the FlexGrid control's ColImageList property to map data values into pictures.

The sample implements a FlexDataSource class which returns regular string data. The grid uses the ColImageList property to convert the data for two columns into icons.

and here is the link to download:
http://helpcentral.componentone.com/Sample.aspx?Url=http://prerelease.componentone.com/.samples/activex/vsFlexGridPro8/Samples/VB/CustDataPict/C1FlexGrid8_CustDataPict.zip

Hope it helps...

Author

Commented:
Hi Mourtaza,
I would like to know if there is any free stuff I could use.
Also if you know of a solution, even difficult but workable, to implement in dbgrid  I would still like to know that. Thanks
/uzairp
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
I think at least one of my comments was useful...

Commented:
Had you AT ALL read what the recommendation is?!?!?!

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.