PC Review


Reply
Thread Tools Rate Thread

DataGridView - Adding Images to a Record

 
 
samadams_2006@yahoo.ca
Guest
Posts: n/a
 
      28th Dec 2007
Hello,

I have an unbound DataGridView on a VBForm, and I would like to
display an icon or image in the first column of a record to indicate
what type of record it is. For example, error (display an error
icon), warning (display a warning icon), information (display an
information icon). I have these icons custom-made in .bmp form, and
they are the dimensions of a regular icon. I would like to be able to
use an ImageList on the form to hold these images/icons, and have the
code access them from this location as opposed to going to the hard-
drive.

Can anyone send me a snippet of code, or give me some advice on how to
do this?

Thanks
Sam
 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      28th Dec 2007
Don't assume it is easy,

Maybe this helps a little bit although it is not 100% answering your
question

http://www.vb-tips.com/TextAndImageColumn.aspx

Cor

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Images from file into datagridview LuvinLunch Microsoft VB .NET 0 8th Jan 2010 05:09 PM
adding a new record at subform should update an existing record (not create new record) Mark Kubicki Microsoft Access Form Coding 1 16th Jan 2009 08:34 AM
Re: Add / Delete record from table - How to reposition selected record in datagridview??? Cor Ligthert[MVP] Microsoft VB .NET 0 31st Mar 2008 05:26 AM
Datagridview: different images for different rows CGatto Microsoft VB .NET 2 27th Mar 2008 01:11 PM
DataGridView and images column =?Utf-8?B?cm9kY2hhcg==?= Microsoft Dot NET Framework Forms 2 4th Dec 2007 02:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:44 AM.