Results 1 to 3 of 3

Thread: Change listview column width at runtime

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    174

    Change listview column width at runtime

    Dear All,

    I am in a problem.

    Actually in my project I am having a listview control. It has got 17 columns. Now based upon some criteria I want to change the column width of the 13th column only. Is that possible.

    If yes then what is the code.

    Please help me. Its urgent.

    Thanks to all in advance

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Change listview column width at runtime

    Yes its possible with a code like
    Code:
    listview1.SelectedItem.ListSubItems(12).Width = 100
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width