473,765 Members | 2,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ListView or Grid component

I'm looking for a component to make listviews (perhaps grid). I have two
requirements for the component for two different situations I want to use
it.
In the first situation, I need a listview that either allow to have an image
on the background or a gradient background.
The second application is to have a listview in "detail" mode or a grid (it
will be read-only, therefore I'm not sure if I need a grid component). The
only thing extra from the listview that comes with C# is that I want to have
alternating color rows.

Any suggestion?

Cheers

Padu
May 3 '06 #1
2 2210
Padu,

I don't think that you can have alternating color rows on a ListView.

You should use the DataGridView class. It has a BackgroundImage
property that you can set the background image to. It will also let you
alternate row colors.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Padu" <pa**@merlotti. com> wrote in message
news:eK******** ************@is west.net...
I'm looking for a component to make listviews (perhaps grid). I have two
requirements for the component for two different situations I want to use
it.
In the first situation, I need a listview that either allow to have an
image on the background or a gradient background.
The second application is to have a listview in "detail" mode or a grid
(it will be read-only, therefore I'm not sure if I need a grid component).
The only thing extra from the listview that comes with C# is that I want
to have alternating color rows.

Any suggestion?

Cheers

Padu

May 3 '06 #2
"Nicholas Paldino
Padu,

I don't think that you can have alternating color rows on a ListView.

You should use the DataGridView class. It has a BackgroundImage
property that you can set the background image to. It will also let you
alternate row colors.

Hope this helps.


Thanks for the help. Yes, I found out that listview does not provide the
additional features I want. I started playing with the DataGridView and I
found it a bit too much. If we find no other way such an easy to use 3rd
party component, then we'll have to use it.

Cheers

Padu
May 3 '06 #3

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

Similar topics

1
6055
by: Daisy | last post by:
I'm writing a NewsReader (seemed like a decent project to start learning with), and want threading like in OE. I've got a treeview and a listview. On Expand/Contract on the listview, I spin through the nodes checking .IsVisible, and those that are visible, I take the info I need (posted name / date) out of the .Tag (is there a better place to put this?), and add them to the listview. For now, it loops from the top, though it might be...
6
1561
by: Ivan Weiss | last post by:
Hi all, I am writing an app that displays data such as a list of customers, vendors, products etc... in a listview. The listview however is pretty ugly and boring and I am pretty bad at making things look "pretty" on my own so does anyone know of any nice components out there? I found a nice component for my toolbar and menubar that makes it look like office 2003 which is very nice but now want to jazz this part up on my app... Thanks...
6
5038
by: Jack | last post by:
Hello, I've noticed through searching this group's previous posts that one can get the item the mouse is over in a listview control but I did not see how to get the subitem the mouse is over. Is this possible? I intend on replacing an ActiveX grid with a listview control from a VB6 application that I've upgraded to VB .NET. The existing functionlality uses the mouseover event of the grid to display specific information within...
0
1038
by: Lee Grissom | last post by:
For example, the ListView.SmallImages property. Anybody know the Property Grid enumerates available imagelists for that? Does it iterate through all the components looking to see if the class is "ImageList", or does it look for all components and test to see if it has a specific attribute? The reason I ask is that I was wondering if I could create my own ImageList component and "trick" the standard components to "see" me at design time....
4
6094
by: gene kelley | last post by:
I had a VB6 app that used a third party ListView control to simply display various recordsets. The control had a VirtualMode which I used for this display. Now in VB2005, I want to do the same with the native ListView to display various datasets in VirtualMode. I have a ListView with the VirtualListSize set and the appropriate columns in place which is all similar to the old VB6 app. However, the similarities end there as I can't find...
3
5409
by: Martin Panggabean | last post by:
Hello All, I've kind a logic problem ... I want to fill the listView control in VB.NET with data in my mySql table using Datareader object component. But It seems that the way of how listView being used is quite different from usual column-row component like Grid component. If you kind a familiar using listView, u must have known what i'm talking about. Here is some example i took from MSDN :...
1
1587
by: --== Alain ==-- | last post by:
Hi, Several months ago i've asked some information about the best way how to have some particular columns (progress bar, checkbox, images, color picker,...) in a ListView component. It seems that ListView is a complex component and a lot of people advise to build a custom component but not from ListVIew itself. Some use a datagrid component as base component, some build a component
5
1804
by: --== Alain ==-- | last post by:
Hi, Several months ago i've asked some information about the best way how to have some particular columns (progress bar, checkbox, images, color picker,...) in a ListView component. It seems that ListView is a complex component and a lot of people advise to build a custom component but not from ListVIew itself. Some use a datagrid component as base component, some build a component
7
2341
by: Liz | last post by:
My ListView components seem to produce distortion when they are scrolled in Details view; it looks almost like the text has a "strike-through" attribute applied to it. Does anyone know of a fix for this? If not, is there an alternative component available (that behaves like a ListView) ? TIA L
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10164
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5277
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.