this.taskNum = this.dgvUnfinishedTask.CurrentRow.Cells[3].ToString();
sql = @"select 任务明细 from TaskDetail where 任务编号 = @taskNum";
SqlConnection conn = new SqlConnection(conString);
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataAdapter da = new SqlDataAdapter(sql, conn);
D1 = new DataTable();
cmd.Parameters.Add("@taskNum", SqlDbType.VarChar, 50);
conn.Open();
cmd.Parameters["@taskNum"].Value = this.taskNum;
da.Fill(D1);
this.rtbTaskDetail.Text= D1.Rows[0][0].ToString();
conn.Close();
D1.Dispose();
慕的地10843