PC Review


Reply
Thread Tools Rate Thread

Create ListView columns dynamically from XML

 
 
yer darn tootin
Guest
Posts: n/a
 
      28th Mar 2005

looking for any suggestions on how to approach building functionality
to allow users to select their preferred columns for viewing in a
ListView control. The idea is similiar to how Windows Explorer works,
right click to select/deselect which columns are shown in the rh pane
listview. For me, I'd like the user preferences to be stored to xml
file and re-loaded when app starts.
( Not sure how Explorer achieves this )

any tips, code examples welcome..

Thank you,
Bob.

 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      28th Mar 2005

For this you can use the context menu and for saving it the registry.

Both are very easy to use, search for that in your help or on
MSDN.microsoft.com

I hope this helps,

Cor


 
Reply With Quote
 
=?Utf-8?B?Qks=?=
Guest
Posts: n/a
 
      13th Apr 2005
Unfortunately theis response will be of no help to you except that...

I am working on something (perhaps) similar where I will have a folder/file
hiererchy in XML and will display the xml on a TreeView and clicking ony any
node will display the attributes of the "contained" files on a ListView.
Sounds amost like Windows Explorer? Yes - except this tool will load
different static, pre-built XMLs.

At this time I am trying to extract all FileTypes and their DefaultIcons
from the Registry.

Please notify this thread when/if you find solutions as i will. Good luck.

BK

"yer darn tootin" wrote:

>
> looking for any suggestions on how to approach building functionality
> to allow users to select their preferred columns for viewing in a
> ListView control. The idea is similiar to how Windows Explorer works,
> right click to select/deselect which columns are shown in the rh pane
> listview. For me, I'd like the user preferences to be stored to xml
> file and re-loaded when app starts.
> ( Not sure how Explorer achieves this )
>
> any tips, code examples welcome..
>
> Thank you,
> Bob.
>
>

 
Reply With Quote
 
Doug Taylor
Guest
Posts: n/a
 
      14th Apr 2005
On 28 Mar 2005 01:05:23 -0800, "yer darn tootin"
<(E-Mail Removed)> wrote:

>
>looking for any suggestions on how to approach building functionality
>to allow users to select their preferred columns for viewing in a
>ListView control. The idea is similiar to how Windows Explorer works,
>right click to select/deselect which columns are shown in the rh pane
>listview. For me, I'd like the user preferences to be stored to xml
>file and re-loaded when app starts.
>( Not sure how Explorer achieves this )
>
>any tips, code examples welcome..


Take a look at http://www.codeproject.com/csharp/Listview.asp

I used roughly the approach given in this article, which is basically
to have a collection of your own column header objects and serialise
the collection to XML, the only issues are getting the column order
and column width of moved resized columns, but that is explained in
the article.

Doug Taylor
>
>Thank you,
>Bob.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically add user controls to a listview HDI Microsoft VB .NET 2 27th Nov 2006 05:59 AM
Map ListView.Columns[].Index to ListView.Items[].SubItems index Samuel R. Neff Microsoft C# .NET 0 21st Dec 2004 10:41 PM
How to create filesystemwatcher & timer objects dynamically, and make sure they can keep working themselves at the same time, and give some jobs to their event dynamically? Parco Microsoft Dot NET Framework 0 5th Oct 2004 05:04 PM
Filling up a listview dynamically with file contents VM Microsoft C# .NET 3 5th Oct 2003 12:22 PM
Dynamically creating Listview and columns David Webb Microsoft Dot NET Compact Framework 2 27th Aug 2003 11:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:27 AM.