473,752 Members | 10,802 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using ListView's VirtualMode


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 any
example in Help, Google or MSDN on how to populate a VirtualMode ListView in VB2005. How is this
accomplished?
Thanks,

Gene
Jul 26 '06 #1
4 6093
"gene kelley" <ok**@by.meschr ieb:
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 any
example in Help, Google or MSDN on how to populate a VirtualMode ListView
in VB2005.
Check out the control's 'RetrieveVirtua lItem' event.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jul 26 '06 #2
Genne,

VirtualMode is a nice word that can have a lot of contents. I checked it by
instance on Wikepedia and on that it does not exist. It is used as this in
the DataGridView, in the way my message is that exactly oposite as you want
to do.

http://msdn2.microsoft.com/en-us/lib...rtualmode.aspx

I would not use a listview with VBNet, the listview is for non database
related data. Have a look at the DataGridView for that, if you use normally
only the detailview of the listview (as most do), than you can tailor the
DataGridView real very good in that direction.

Otherwise describe what your goal is with the by your supplier named
VirtualMode.

I hope this helps,

Cor

"gene kelley" <ok**@by.meschr eef in bericht
news:4a******** *************** *********@4ax.c om...
>
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 any
example in Help, Google or MSDN on how to populate a VirtualMode ListView
in VB2005. How is this
accomplished?
Thanks,

Gene

Jul 27 '06 #3
"my message" should be "in my idea your message tells"

Cor

"Cor Ligthert [MVP]" <no************ @planet.nlschre ef in bericht
news:Od******** *****@TK2MSFTNG P06.phx.gbl...
Genne,

VirtualMode is a nice word that can have a lot of contents. I checked it
by instance on Wikepedia and on that it does not exist. It is used as this
in the DataGridView, in the way my message is that exactly oposite as you
want to do.

http://msdn2.microsoft.com/en-us/lib...rtualmode.aspx

I would not use a listview with VBNet, the listview is for non database
related data. Have a look at the DataGridView for that, if you use
normally only the detailview of the listview (as most do), than you can
tailor the DataGridView real very good in that direction.

Otherwise describe what your goal is with the by your supplier named
VirtualMode.

I hope this helps,

Cor

"gene kelley" <ok**@by.meschr eef in bericht
news:4a******** *************** *********@4ax.c om...
>>
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 any
example in Help, Google or MSDN on how to populate a VirtualMode ListView
in VB2005. How is this
accomplished ?
Thanks,

Gene


Jul 27 '06 #4
On Thu, 27 Jul 2006 06:28:54 +0200, "Cor Ligthert [MVP]" <no************ @planet.nlwrote :

>Genne,

VirtualMode is a nice word that can have a lot of contents. I checked it by
instance on Wikepedia and on that it does not exist. It is used as this in
the DataGridView, in the way my message is that exactly oposite as you want
to do.

http://msdn2.microsoft.com/en-us/lib...rtualmode.aspx

I would not use a listview with VBNet, the listview is for non database
related data. Have a look at the DataGridView for that, if you use normally
only the detailview of the listview (as most do), than you can tailor the
DataGridView real very good in that direction.

Otherwise describe what your goal is with the by your supplier named
VirtualMode.

I hope this helps,

Cor
The original VB6 app was a cataloging program which was "skinned" and used a 3rd party ListView with
Virtual Mode, and was skinable to match the rest of the UI. It worked fine. Largest number of
records I'm aware of from one of the user's is about 50,000.

Now it's time to rewrite this app in NET.
I have a new 3rd party skin component that supports the ListView.
I got the ListView VirtualMode working (re: my original post), but the resulting records display has
unacceptable redrawing/flickering when resizing the column widths.

I took a brief look at the DataGridView. The skin component supports the scroll bars on the
DataGridView and I see how the rest of the control can be customized to generally matcht the app's
skin. More impoortantly, there seems to be no redraw/flicker issues.

Now, with looking at using a DataGridView type control instead of a ListView, I am thinking of using
a master/detail display. I have a 3rd party DataGrid demo which shows an example of a master/detail
display in one grid. That is, the Master Data is displayed with a "expand" icon. Clicking the
"expand" icon expands the row to show the Detail Data. I took a quick look at some Master/Detail
examples using the DataGridView, but the examples I found all use 2 DataGridView controls side by
side or top and bottom. Do you know if it's possible to create a Master/Detail display using only
one DataGridView control?

Gene
Jul 27 '06 #5

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

Similar topics

10
11340
by: Danny Tuppeny | last post by:
Hi All, I'm trying to find the best way to select an item in a ListView using the Virtual mode. My "items" are business classes, and I have a reference to once I want to select (passed from another dialog). One way is to spin through the items and compare the .Tag property to my business object (code below), however I fear the casts are probably costly (there could be a lot of servers). I also thought about spinning through the servers...
1
5170
by: Martin Carpella | last post by:
Hi everyone, sorry, I might be missing the wood for the trees, but I'm unable to find a way to set the selected index in my ListView which is in VirtualMode. I'm quite sure that it'll be a "yes, obviously"-answer ;) Any hints? Best regards,
4
14484
by: Archimed | last post by:
Hi, I try to use an ImageList with a ListView but that don't work. I make a ListView in VirtualMode with LargeIcon view. I put the ImageList in the LargeImageList property. I add a bitmap to the ImageList When i want to see the item "icon" with the imagelist imageindex
3
2395
by: Michael.Suarez | last post by:
Is it me, or does it seem like they put no effort into creating the listview control in .Net. listview. A few gripes I have with .Net listview that aren't present in vb6: -Inability to set tooltiptext of subitems (without the use of a very inconveniant work around). -Inability to display images in subitems (without using the windows api
1
1790
by: Mystique | last post by:
Hello I have a ListView and a form for entering data. When the user is finished entering the data he presses AddToListView. Then there is a large object that is being filled with data that the user has entered and the object is added to the ListView. Then I call: listView1.Items.Selected = true; listView1.Select(); so the item gets autmatically selected.
0
1422
by: Per Rollvang | last post by:
Hi All! I have a listview in virtualmode. I can't get the checkboxes to work right. The check-events don't fire, and the checked state seem to live a life way beyond my knowledge... Do I have to store the checked / unchecked-state? Do I have to mess with keystrokes / mouseclicks to monitor what the user does?
1
2125
by: Duracel | last post by:
Hi (this is a rephrase of my question from yesterday!), How can I set the size of the thumbnails of a listview in thumbnail mode? I'm owner drawing images from my own cache (i.e. they aren't stored in LargeImageList) but the only way I can see to tell the listview how large I want each thumb to be is by setting the ImageSize property of LargeImageList. Unfortunately, the maximum size for an image in this case is 256 x 256 pixels, but...
1
5390
by: Carl Johansson | last post by:
I have a virtual ListView (VirtualMode set to true). To make it more convenient for the users of the ListView to select its items, I've set the ListView's CheckBoxes property to true. However, in virtual mode no checkboxes appear. That is, when the View style is set to Details the text labels are indented to make room for checkboxes, but no checkboxes are displayed. Am I missing something? I think this ought to be as straight forward as...
1
2633
by: NvrBst | last post by:
I have a ListView (VirtualMode) and I want to implement a SelectAll. --1st Atempt-- The standard for loop takes way to long: "for(int i = 0; i < listView1.VirtualListSize - 1; i++) listView1.SelectedIndices.Add(i);". I've tried wrapping the above statment in a "listView1.SuspendLayout() / listView1.ResumeLayout(false)" but it didn't help. 3000 Elements takes about 15 seconds to select with this.
0
9020
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
8861
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,...
1
9371
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,...
1
6830
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6101
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
4726
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...
0
4910
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3340
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
2819
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.