21-11-19, 10:41 PM
الف شكرا لك تم الحل الكود كان فى حرف n زيادة
كود :
OleDbDataAdapter da = new OleDbDataAdapter("select * from said where xmadical1 LIKE '" + comboBox1.Text + "' or xmadical2 LIKE" + " '" + comboBox1.Text + "' or xmadical3 LIKE '" + comboBox1.Text + "'", con);
DataTable dt = new DataTable();
if (con.State == ConnectionState.Closed)
{ con.Open(); }
dt.Load(da.SelectCommand.ExecuteReader());
con.Close();
dataGridView1.DataSource = dt;
dataGridView1.Refresh();