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

Home Posts Topics Members FAQ

C# Dynamic listview column reorder

1 New Member
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.
Apr 13 '07 #1
0 2173

Sign in to post your reply or Sign up for a free account.

Similar topics

2
11132
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:
0
2528
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"
1
5211
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?
0
279
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?
1
3920
by: Mat | last post by:
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. Mat
2
1282
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?
3
2240
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
2
1411
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.
1
3518
by: Red Head | last post by:
Hello :) I would like to have an horizontal image list where you can drag and drop the images to reorder them (like slide reorder in powerpoint, but then in an horizontal way) so i had a look to this article: http://www.codeproject.com/KB/miscctrl/LVCustomReordering.aspx and a set scrollable to false, so that al itemes were arranged horizontaly but the reordering doesn't work
0
9887
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
10983
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
10707
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
10341
tracyyun
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...
1
7883
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
5719
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
5911
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4529
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
4119
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.