السلام عليكم
عندما أبحث عن ملف معين برقم الملف أو بالاسم
أريد أن أعرض الملف المطلوب فقط في الداتا قريد
هذا كود البحث لكن العرض هو مشكلتي
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
RadioButton radioBtn3 = (RadioButton)sender;
if (radioBtn3.Checked)
{
con.Open();
OleDbCommand cmd = new OleDbCommand("Select * from Table1", con);
OleDbDataReader read = cmd.ExecuteReader();
comboBox1.Items.Clear();
while (read.Read())
{
comboBox1.Items.Add(read["الملف"]);
}
con.Close();
}
}
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
RadioButton radioBtn3 = (RadioButton)sender;
if (radioBtn3.Checked)
{
con.Open();
OleDbCommand cmd = new OleDbCommand("Select * from Table1", con);
OleDbDataReader read = cmd.ExecuteReader();
comboBox1.Items.Clear();
while (read.Read())
{
comboBox1.Items.Add(read["الاسم"]);
}
con.Close();
}
}
private void radioButton3_CheckedChanged(object sender, EventArgs e)
{
RadioButton radioBtn3 = (RadioButton)sender;
if (radioBtn3.Checked)
{
con.Open();
OleDbCommand cmd = new OleDbCommand("Select * from Table1", con);
OleDbDataReader read = cmd.ExecuteReader();
comboBox1.Items.Clear();
while (read.Read())
{
comboBox1.Items.Add(read["الجوال"]);
}
con.Close();
}
}
private void button1_Click(object sender, EventArgs e)
{
؟؟؟؟؟؟؟؟؟؟؟؟؟؟
}وشكرا :happy: