09-07-19, 07:16 PM
(آخر تعديل لهذه المشاركة : 09-07-19, 07:21 PM {2} بواسطة asemshahen5.)
تفضل :
أي شيء آخر فقط أخبرني .
PHP كود :
private void textBox1_TextChanged(object sender, EventArgs e)
{
DataTable QDt = new DataTable();
QDt.Clear();
cmd = new SqlCommand("select NAME_OF_CONTRACTOR from CONTRACTORS where Project_Number ='" + comboBox2.Text.ToString() + "'", sqlcon);
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(QDt);
if (QDt.Rows.Count > 0)
{
comboBox3.Items.Clear();
foreach (DataRow str in QDt.Rows)
{
comboBox3.Items.Add(str[0].ToString());
}
}
}
أي شيء آخر فقط أخبرني .
سبحان الله وبحمده سبحان الله العظيم و الحمد لله ولا اله الا الله والله اكبر
