CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: How To: dyanamically add/remove columns in ListView Control

  1. #1
    Andy Tacker is offline More than "Just Another Member"
    Join Date
    Jun 2001
    Location
    5550' N 3739' E
    Posts
    1,503

    How To: dyanamically add/remove columns in ListView Control

    hey there!
    You might nave nitoced Task Manger, where there is a menu item named "Select Columns".
    there is a list of columns, you can put check marks there to add/remove columns.
    I am trying to do same.
    so, what i am doing is reading text and adding/removing a column. but doesn't seems to be a nice solution as the application can be Multilanguage. so, the text could not be the criteria to implement this funtionality.
    could someone give an idea or two to implement this?
    thanks,
    Andy
    If you think you CAN, you can, If you think you CAN'T, you are probably right.

    Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.

  2. #2
    Join Date
    Nov 2002
    Location
    Lahore, Pakistan
    Posts
    52
    listView1.Columns.Add

    listView1.Columns.Remove

    functions to add and remove columns at run time

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)