111,130
社区成员
发帖
与我相关
我的任务
分享
string sql = "select khno,dgsl,sdsl from ywydd where qkno = "
+ dataGridView1.Rows[e.RowIndex].Cells["期刊号"].Value.ToString()
+ " and qs = " + textBox6.Text.Trim() + " --and fjsj is null";
DataTable dt = dc.getTable(sql);
dataGridView2.DataSource = dt;
//e.RowIndex是当前行索引,e.ColumnIndex是当前列索引