I have tried to display the names of table in oracle database in visual studio 2012 in combo box but i am not sure why it is not displaying
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
con.Open();
OleDbDataAdapter oda = new OleDbDataAdapter("SELECT table_name FROM tabs where table_name Like 'ST%'", con);
DataTable dt = new DataTable();
oda.Fill(dt);
comboBox1.DataSource = dt;
comboBox1.DisplayMember = "table_name";
con.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex + "");
}
}