private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { string qry = "select * from tbmobile where uid=" + comboBox2.SelectedValue; SqlDataAdapter da = new SqlDataAdapter( qry,con); DataTable dt = new DataTable(); da.Fill(dt); dataGridView1.DataSource = dt; dataGridView1.Refresh(); }
SelectedItem
string qry = "select * from tbmobile where uid='" + comboBox2.SelectedValue + "'";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)