hi,
how to add dictionary to spinner ...i created one
dictionary<string,int>...now i have to populate spinner with that dictionary
just like array adapter...
/* List<string> courses = new List<string>();
courses.AddRange(new string[]{"Chemistry", "Physics",
"Biology","Maths", "German"});
List<int> courseNumbers = new List<int>();
courseNumbers.AddRange(new int[] { 101, 202, 303, 404, 505 });
ArrayAdapter<string> adapter = new
ArrayAdapter<string>(this,Android.Resource.Layout.SimpleSpinnerDropDownItem);
foreach (string s in courses)
adapter.Add(s);
spinner.Adapter = adapter;*/
like this how can i add dictionary to spinner to populate spinner with
dictionary values...i created dictionary like this:
Dictionary<string, int> course = new Dictionary<string, int>();
course.Add("MCA", 101);
course.Add("MBA", 202);
course.Add("MSc", 303);
course.Add("Mtech", 404);
now to add dictionary to the spinner by which property (like spinner.Adapter
for ArrayAdapter)
reply hurry
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Enhancement-code-for-Spinner-tp5712950p5712985.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid