pass dropdown with 2 values
-
Using typeconverter i am having a dropdown.i want to pass Displayvalue for a dropdown as string value and its id as int value. E.g :- I have a dropdown called Fruit with 3 values(AAA,BBB,CCC). if i select AAA i want to pass value 0,if BBB value 1 etc.. All values are retrieved from XML file.Also no hardcoding is allowed . On propertyvalue changed event i get only display value (AAA,BBB,CCC) not id(0,1,2)...Tell me a solution to it.
-
Using typeconverter i am having a dropdown.i want to pass Displayvalue for a dropdown as string value and its id as int value. E.g :- I have a dropdown called Fruit with 3 values(AAA,BBB,CCC). if i select AAA i want to pass value 0,if BBB value 1 etc.. All values are retrieved from XML file.Also no hardcoding is allowed . On propertyvalue changed event i get only display value (AAA,BBB,CCC) not id(0,1,2)...Tell me a solution to it.