Quantcast
Channel: drop down list
Viewing all articles
Browse latest Browse all 3

drop down list

$
0
0

Welcome to the MSDN Forums.

Actually, .NET Framework already has the needed code for spliting. Let's see how:

foreach(object o in dropDownList.Items)
{string[] splitted = o.ToString().Split(newchar[]{' '});//split by ' '(space)foreach(string s in splitted)
 dropDownList2.Items.Add(s);//add them to another drop down
}

Hope this helps.

Sincerely,

Yasser


LEARN HOW WPF IS FLEXIBLE IN PRESENTATION DURING A QUICK SIMPLE WALKTHROUGH:
Walkthrough: Displaying multi column ComboBox by using Windows Presentation Foundation (WPF) data templating

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>