Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. ComboBox, ListBox Column Headers

ComboBox, ListBox Column Headers

Scheduled Pinned Locked Moved WCF and WF
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BlitzPackage
    wrote on last edited by
    #1

    Good People, Is there a way to have column headers in a listbox or combobox? Any information or help you can provide would be great. Thanks, BP

    M 1 Reply Last reply
    0
    • B BlitzPackage

      Good People, Is there a way to have column headers in a listbox or combobox? Any information or help you can provide would be great. Thanks, BP

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      For listbox, I would instead use a ListView with a GridView as its view. For ComboBox - I haven't tried it, but if you look at an example of a ComboBox template (ripped with Blend or the ComboBox ControlTemplate Example[^]) you can look for the panel with IsItemsHost="True". For example if it's a ScrollViewer/StackPanel like at the link above, you could replace those with a ListView/GridView. I'm not sure how the PART_EditableTextBox element of the comboBox gets its text, but maybe simply overriding ToString() on your ItemsSource data class will do the trick. Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups