473,387 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Adding images (bitmap) to any colum of a listview

Hi,

I have successfully implemented a simple TreeView Control
with a corresponding Listview.

I know how to assign a bitmap to the first item of a
Listview, but is it possible to add a bitmap to any column
of a Listview?

Finally, I was wondering if it is possible to have the
each row of a Listview have it's own background color. I
want to alternate each row with light green
(transparent ?) and white so as to make it easy to follow
the row from left to right(the way ledger accounting paper
is printed.) Is this possible?

Thanks,

Ivan
Nov 15 '05 #1
2 6517
Hi Ivan,

There should be no problem with backgrounds - each SubItem has
BackgroundColor property which can be set individually. But as for bitmaps,
you'll most likely have to implement custom drawing. I have seen a good
example if this somewhere on www.codeproject.com, the sample was called
"Sorted List View" if my memory serves me well.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Ivan Figueredo" <ca*******@yahoo.com> wrote in message
news:53****************************@phx.gbl...
Hi,

I have successfully implemented a simple TreeView Control
with a corresponding Listview.

I know how to assign a bitmap to the first item of a
Listview, but is it possible to add a bitmap to any column
of a Listview?

Finally, I was wondering if it is possible to have the
each row of a Listview have it's own background color. I
want to alternate each row with light green
(transparent ?) and white so as to make it easy to follow
the row from left to right(the way ledger accounting paper
is printed.) Is this possible?

Thanks,

Ivan


Nov 15 '05 #2
Dmitriy,

That site really helped!

Thanks a million!

Ivan

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Vinay | last post by:
Hi All: I have a small application that stores images either in the database or as files (depending on the user preference). I'm in the process of providing a web interface to this application....
1
by: Mark Doggett | last post by:
Hi I have a listview control with four columns. The problem I have is that the second column needs to display an image but as it is a subitem this doesn't appear to be able to be done. Does...
8
by: Dave Quigley | last post by:
Hello everyone.... Im currently starting my targa support project again for ..NET and I am wondering if there are any particular interfaces or classes that Im supposed to extend in order to do this...
6
by: Vaughn | last post by:
Is there some way I can save images (bigger than 16x16 pixels) so they don't reside as physical files on the HDD? I'm working on a screensaver but I want to include all my images in my executable...
6
by: Maheshkumar.R | last post by:
How i can store images in array @ runtime..? What are the possbile ways.. Thankz.. - Mähésh Kumär. R
0
by: Andre Viens | last post by:
Hello, I am using the following variation of code from <http://support.microsoft.com/default.aspx?scid=kb;EN-US;319340> to add icons to an imagelist for use in a listview: Private Structure...
3
by: Earl | last post by:
Looking for an idea here. I've got a .Net app connecting to SQL2005 where I allow users to add pictures to the database. But I don't want them adding gigantic images, so I'm looking for an idea on...
3
by: piercy | last post by:
Hi, i am trying to use a list view to display a list of passed and failed items but the images are not always displaying. Sometimes the images will display fine and others they just will not appear....
0
by: Asja | last post by:
How can I do this? This question has been asked so many times on other forums without an answer, so I am not hopeful. OAKview has been suggested but it doesn't work, so please don't suggest that. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.