Loading combobox
-
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...