C# | Veri tabanı void’de arama hatası

Question


private void arama(string veritext, string Veriİsmi)
{
baglan.Open();
DataTable tbl = new DataTable();
string vara, cumle;
vara = veritext;
cumle = "Select * from TeknikServis where"+ Veriİsmi + " like '%" + veritext + "%'";
OleDbDataAdapter adptr = new OleDbDataAdapter(cumle, baglan);
adptr.Fill(tbl);
baglan.Close();
dataGridView1.DataSource = tbl;
}
private void Textbox1_OnValueChanged(object sender, EventArgs e)
{
arama(Textbox1.Text, "ServisSira");
}

0
Ahmet 3 months 0 Answers 0

Leave an answer

Browse
Browse