Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show Picture in Datagrid

Status
Not open for further replies.

chrsab

Programmer
May 24, 2002
44
GB
Hello

I have a access database which is linked to vb6 with a adodb control and viewed with a datagrid control. The information shown is as follows:

Log Name
-1 Smith
0 Jones

The log column can only be -1 or 0. So what i would like is in the datagrid, the -1 or 0 to be replaced with a picture. -1 to be one pic and 0 to be another. Is this possible?

Thanx for any help you can provide.
 

Doesnt the column of datagrid have image property?
If not
sure just drop an image control on the datagrid and use case or if statements and set the image depending on your log column value
 
Which image control should I be using as there are a couple, like admin, scan, edit etc.
 
well the first image would be empty wont it and then you load according to the values
example if its 1 load admin etc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top