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. C#
  4. Loading combobox

Loading combobox

Scheduled Pinned Locked Moved C#
helpquestion
1 Posts 1 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.
  • T Offline
    T Offline
    Tanuja123
    wrote on last edited by
    #1

    I have 2 comboboxes :- DataType & DataFormat In DataType if i select any type say Time/Date/IPAddress/ID i should be able to load dynamic values to DataFormat based on selected DataType. Ex:1)DataType ->Date DataFormat->(A)hh/mm ,(B)hh/mm/yyyy ,(C)mm/dd/yyyy . 2)DataType ->IPAddress DataFormat ->127.000.000.000, 127.0.0.0 For DataFormat i am using a single StringConverter class.The problem here is am able to load values but always the 1st value gets replaced with selected value.What could be the reason?... Say,i have date- hh/mm/yyyy format selected.then i change datatype as IPAddress- 127.0.0.0 .Next i come back and select date again ,at that time 1st value displayed in combobox is the selected value- hh/mm/yyyy instead of hh/mm.Now the DataFormat combobox displays duplicate values as :- (A)hh/mm/yyyy ,(B)hh/mm/yyyy ,(C)mm/dd/yyyy . Please help me...

    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