PC Review


Reply
Thread Tools Rate Thread

How to change Listview w/different #of col and col header during r

 
 
=?Utf-8?B?UHVjY2E=?=
Guest
Posts: n/a
 
      13th Jul 2006
I'm doing like a directory view thing with a TreeView on panel1 and Listview
control on panel2 of a splitcontainer. I have 2 quesiton:
1. How do I make the splitcontainer and the TreeView and the Listview to
resize when user click the max icon or resize the window?

2. What's the best way to change Listview with different #of col and col
headers and data source during runtime? Just like what we see in Active
Driectory User, Computers and Group application. Are there any good example
out there?
--
Thanks.
 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      13th Jul 2006

>1. How do I make the splitcontainer and the TreeView and the Listview to
>resize when user click the max icon or resize the window?


If you anchor or dock the controls in their containers it should
happen automatically.


>2. What's the best way to change Listview with different #of col and col
>headers and data source during runtime? Just like what we see in Active
>Driectory User, Computers and Group application. Are there any good example
>out there?


Not sure what you mean here. The way you change a Listview is
basically the same regardless of the number of columns.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
=?Utf-8?B?UHVjY2E=?=
Guest
Posts: n/a
 
      18th Jul 2006
I docked the controls and they're working great.
--
Thanks.


"Mattias Sjögren" wrote:

>
> >1. How do I make the splitcontainer and the TreeView and the Listview to
> >resize when user click the max icon or resize the window?

>
> If you anchor or dock the controls in their containers it should
> happen automatically.
>
>
> >2. What's the best way to change Listview with different #of col and col
> >headers and data source during runtime? Just like what we see in Active
> >Driectory User, Computers and Group application. Are there any good example
> >out there?

>
> Not sure what you mean here. The way you change a Listview is
> basically the same regardless of the number of columns.
>
>
> Mattias
>
> --
> Mattias Sjögren [C# MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
>

 
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
Listview and header --== Alain ==-- Microsoft C# .NET 0 28th Oct 2006 12:06 PM
Re: ListView column header color change in vb.net Herfried K. Wagner [MVP] Microsoft VB .NET 0 28th Aug 2004 02:06 PM
Programaticaaly change text in column header of listview =?Utf-8?B?TGkgUGFuZw==?= Microsoft VB .NET 1 12th Mar 2004 09:02 AM
How can I change the listview column's header back color?? =?Utf-8?B?am9jaG9h?= Microsoft Dot NET Compact Framework 0 4th Feb 2004 04:16 PM
ListView header Alex Microsoft Dot NET Framework Forms 1 13th Sep 2003 11:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:26 AM.