473,854 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Listview column reorder question

Reordering Column changes column Indexes????
i use column.index to access(or add ) data in listview. i want to allow user
to reorder columns as they need. So i am afraid to get wrong data when user
reorder columns.

Can anyone confirm?

Thanks you in advance.


Nov 20 '05 #1
1 3920

The original column index stays with the column when a user changes the
hope that helps

Steve Stein
This posting is provided "AS IS" with no warranties, and confers no rights.

Reply-To: "Mat" <re**********@f uckSpam.COM>
From: "Mat" <re**********@f uckSpam.COM>
Subject: Listview column reorder question
Date: Thu, 11 Dec 2003 23:36:57 +0100
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <uo************ **@TK2MSFTNGP12 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.langua ges.vb
NNTP-Posting-Host: bertyk.sh.cvut. cz
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!cpm sftngxa10.phx.g bl!TK2MSFTNGXA0 5
.phx.gbl!TK2MSF TNGP08.phx.gbl! TK2MSFTNGP12.ph x.gblXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:163368
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb

Reordering Column changes column Indexes????
i use column.index to access(or add ) data in listview. i want to allow userto reorder columns as they need. So i am afraid to get wrong data when user
reorder columns.

Can anyone confirm?

Thanks you in advance.


Nov 20 '05 #2

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

Similar topics

by: Randy Birch | last post by:
Reposted as the original is reported as deleted from the server. re: MSComCtl Listview control cashes after installing VB6/VS6 SP6 I have been advised that this problem has been reproduced and a hotfix has been prepared. The supporting KB article and hotfix download link have yet to be posted, but I can provide you with the following information for those requiring an immediate fix:
by: Hunters | last post by:
Once you reorder the listview items, largeicon or smallicon view will not follow the order of list or detail view which is the correct order. For example with a listview as lvProdImg.items(0).text="img0" lvProdImg.items(1).text="img1" lvProdImg.items(2).text="img2" lvProdImg.items(3).text="img3" once it is reordered as lvProdImg.items(0).text="img2" lvProdImg.items(1).text="img0" lvProdImg.items(2).text="img1"
by: Scott Kay | last post by:
Hi, When I use the AllowColumnReorder in the ListView Control, this allows the user to reorder columns by dragging them around. Any items added to the control after the user has reordered them appear in the correct column (this is good). Is there any way to determine what the original ordinal position of the column was before it was reordered?
by: Mat | last post by:
Reordering Column changes column Indexes???? i use column.index to access data in listview. so i am afraid to get wrong data when user reorder columns. Can anyone confirm?
by: Marco Castro | last post by:
I want the users to be able to reorder the columns in a few of my listview controls. It's easy enough to make that change in the listview control but I can't seem to find a way to get the new ordering back from the control. Because of this I don't see any way that I can save the new column order for them. Is there any way to do this?
by: J M | last post by:
When you set the Listview's property AllowColumnReorder to True, users can reorder the columns (quite logical I guess)... Bus how on earth can I obtain from code what order these columns are in??? I want to save these settings (to the registry or to a file) so that the program can recall which order of columns the user prefers.... Thanks
by: J L | last post by:
When I fill a listview, I resize the columns to fit the data. I need to know if the data will fit vertically or if there will be a vertical scroll bar. I need to know this so I can allow for it on the overall size of the listview. My question therefore is, how can I tell if the items I have added will fit in the listview at its given height? A secondary one, just for interest sake...is there a way to determine the exact heght needed...
by: Asim Tozlu | last post by:
Hi, i can reorder the column's in my listview. But when i read the columns with: foreach(ColumnHeader column in this.listViewAdressen.Columns) { sExcelColums += column.Text + ";"; } i get the origin Order of my columns.
by: daju | last post by:
hello My question is, after we allow the column reorder can we modify the order of columns through our code. What I need to do is reorder the listview columns so the first column with the checkboxes switches position with the middle column(there are five columns in the listview)? Thank you in advance, D.
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...
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,...
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...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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...
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();...
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

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.