Answer the question
In order to leave comments, you need to log in
How to remove information from rows in listbox?
Hello.
I enter the data in the listbox from xml:
listBox7.Items.Clear();
XDocument X = XDocument.Load(@"c:\Users\MAKSIM\source\list.xml");
// var CDsIn1985 = X.Element("users").Elements("radiostation").Where(E => E.Element("country").Value == "Россия");
var selectCountry = X.Element("users").Elements("radiostation").Where(E => E.Element("country").Value == filterCountryPanel.SelectedItem.ToString());
foreach (var item in selectCountry)
{
// Console.WriteLine(String.Format("Title : {0}, Artist : {1}", item.Element("TITLE").Value, item.Element("ARTIST").Value));
listBox7.Items.Add(item.Element("title").ToString());
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question