DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Help,listview column header alignment

  1. #1
    Join Date
    Mar 2004
    Location
    Teh-Persia
    Posts
    57

    Unhappy Help,listview column header alignment

    hi there,
    i have this listview with 3 columns.
    no matter how (either at design time or run time) i try to set the header alignment of the column on the left (column(0)) to center..it doesn't work!!!
    it works for the other columns but not for column(0).
    Plz help me out!

    PS.my runtime code:
    ListView1.Columns(0).TextAlign = HorizontalAlignment.Center

    i even tried to add the column synamically:

    ListView1.Columns.Add("File type", 150, HorizontalAlignment.Center)

    As the first column , it didn't work!!!

    just as if the alignment stays LEFT.!!!

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Mar 2004
    Location
    Teh-Persia
    Posts
    57
    Thanx Phil.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center