I have an XML file in Win forms.I want to Bind a xml in ComboBox ..I tried some code.But itz not working
DataSet ds = new DataSet();
ds.ReadXml(System.IO.Path.GetFullPath("Employee.xml"));
cbemp.DisplayMember = "EmployeeName";
cbemp.ValueMember = "EmployeeID";
cbemp.DataSource = ds.Tables[0];

Amit GuptaRank #190 · 12.8K reputationPosted Feb 24, 2017, 4:42 AM EST
Nilesh ShahRank #42 · 34.2K reputationPosted Feb 24, 2017, 4:47 AM EST
Nilesh ShahRank #42 · 34.2K reputationPosted Feb 24, 2017, 12:49 PM EST
Vignesh ManiRank #98 · 22.1K reputationPosted Feb 24, 2017, 11:54 AM EST