PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms DataGridView - Unbound Data - Displaying Images or Icons

Reply

DataGridView - Unbound Data - Displaying Images or Icons

 
Thread Tools Rate Thread
Old 28-12-2007, 01:32 AM   #1
samadams_2006@yahoo.ca
Guest
 
Posts: n/a
Default DataGridView - Unbound Data - Displaying Images or Icons


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
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off