Thursday, 20 December 2012

Programmatically select all items in a multiple-selection (multi-select) list box

Following the code:_

XPathNodeIterator players = DataSources["players"].CreateNavigator().Select(
"//player", NamespaceManager);
foreach (XPathNavigator player in players)
{
string number = player.SelectSingleNode("number", NamespaceManager).Value;
AddItem(number);
}

No comments:

Post a Comment