Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Mon, 29 Oct 2007 12:47:50 -0700,    group: microsoft.public.windows.developer.winfx.avalon        back       


ListView Columns   
So I have usercontrol that contains a ListView. I would like one of my
columns to be non-resizable and the others to be resizable by the
user. I would also like to resize the columns on a resize event. I
have the listview resizing but the columns don't. I can't seem to find
the programmic access to the column list that I use to have in
winforms / 2.0. Should this be done through some sort of style or has
the property just been renamed and is hiding from me?

Thanks

-Cam
date: Mon, 29 Oct 2007 12:47:50 -0700   author:   escher4096

Re: ListView Columns   
On Oct 29, 1:47 pm, escher4096  wrote:
> So I have usercontrol that contains a ListView. I would like one of my
> columns to be non-resizable and the others to be resizable by the
> user. I would also like to resize the columns on a resize event. I
> have the listview resizing but the columns don't. I can't seem to find
> the programmic access to the column list that I use to have in
> winforms / 2.0. Should this be done through some sort of style or has
> the property just been renamed and is hiding from me?
>
> Thanks
>
> -Cam

Found it the column collection:
            GridView gridView = listView1.View as GridView;
            gridView.Columns[0].Width = ....

Still haven't found a way to make a column non-resizable.

-Cam
date: Mon, 29 Oct 2007 14:27:25 -0700   author:   escher4096

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us