110,561
社区成员
发帖
与我相关
我的任务
分享
private void comboBox_y1_SelectedIndexChanged(object sender, EventArgs e)
{
string sql = "SELECT * FROM region_x WHERE 县市区='" + comboBox_y1.Text + "'";
SqlHelp sqlHelper = new SqlHelp();
DataTable dt = sqlHelper.GetDataTableValue(sql);
dataGridView2.DataSource = dt;
//string cell =dataGridView2.Rows[0].Cells[0].Value.ToString();
}