Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 14th, 2004, 06:59 AM
Registered User
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Skorpa
Default Moving columns i ListView problems

Is there a way to get the column name when i am adding (sub)items?

My problem: I need the user to be able to move/turn on/off columns,
and I nedd to get the order of the columns when I add new items, or
it bugs/crashes bad :)

Old May 15th, 2004, 04:03 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik

I havent workd with ListView yet but there shouldnot be on/off property but u can control it urself.
ListView.Items.Add(ur item);
Hovik Melkomian.
Old May 15th, 2004, 01:43 PM
Registered User
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Skorpa

I can clarify my problem.

I need to know the order of the columns.

I have some columns , A, B, C.
When I add new items I add Adata, Bdata, Cdata,
A is numbers, B is date, C is string.
The user can change the order of these columns, drag them,
and I need the find out the new order so the right data
goes into the right column...

Old May 18th, 2004, 01:43 AM
Authorized User
Join Date: May 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts

sort: listview.sort
delete all columns and all items: listview.clear()
delete column : listview.columns.clear()
             or listview.columns[i].Remove()
  have a try


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding Listview Columns? jakeone Beginning VB 6 12 October 2nd, 2008 03:52 PM
Disappearing ListView Columns nzakas General .NET 1 June 1st, 2006 04:43 PM
Moving Columns over on the fly with delete query kevorkian SQL Server ASP 0 March 17th, 2006 12:47 PM
Can we reposition the columns o listview-VB.NET pauljoy Pro VB 6 0 January 10th, 2006 01:43 AM
Listview columns Duncan VS.NET 2002/2003 0 April 16th, 2004 03:00 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.