473,395 Members | 1,457 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,395 software developers and data experts.

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 6065
"gene kelley" <ok**@by.meschrieb:
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 'RetrieveVirtualItem' 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.meschreef in bericht
news:4a********************************@4ax.com...
>
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.nlschreef in bericht
news:Od*************@TK2MSFTNGP06.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.meschreef in bericht
news:4a********************************@4ax.com...
>>
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
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...
1
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...
4
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...
3
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...
1
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...
0
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...
1
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...
1
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...
1
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++)...
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: 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?
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
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.