hi Prerak Patel
ya i solve that error but still now i get new problem please give me idea
i bind xml file in combobox but i selected item that ll be cheked and show wt i want so selected item not working proper
below is my code please resolve it.
i bind like this
DataSet ds = new DataSet();
//XmlDocument xmldc = new XmlDocument();
ds.ReadXml(path + @"\Refrigirater.xml");
comboBox1.DataSource = ds.Tables[0];
comboBox1.DisplayMember = "name";
comboBox1.ValueMember = "id";
in xml file i have
Mubai,Kolkata.
and slected item changed that is
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { if(comboBox1.SelectedItem.ToString()==Mumbai) { textBox1.Text =(You Selected : + comboBox1.SelectedItem.ToString()); } else if(comboBox1.SelectedItem.ToString(==Kolkata) { textBox1.Text = (You Selected : + comboBox1.SelectedItem.ToString()); }
i want when i selected mumbai goto mumbai ifcondition....but dont go it.
please resolve my error.
----------
Thanks
Venkat.S