At the moment I have a combobox that is populated from the name fields of a xml database. I have the following code to do this:
XmlDocument xmlReturnDoc = new XmlDocument();
xmlReturnDoc.Load("Data.xml");
XmlNodeList xnList = xmlReturnDoc.SelectNodes("/Students/Student");
foreach (XmlNode xn in xnList)
{ string firstName = xn["FirstName"].InnerText;
string middleInitial = xn["MiddleInitial"].InnerText;
string lastName = xn["LastName"].InnerText;
NewLessonStudentComboBox.DataSource = Students;
NewLessonStudentComboBox.DisplayMember = "DisplayName"; }
This populates the combobox drop down, the only thing is I want the original field left blank, how do I do this?