#region 双击
private void DataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
//Datagridview1显示
//获取行的NO值
string n = "";
n = Convert.ToString(DataGridView.CurrentRow.Cells[0].Value);
using (SqlConnection sqlConn = new SqlConnection(sqlConnStr))
{
sqlDA = new SqlDataAdapter("SELECT * FROM wswxx where no ='" + n + "'", sqlConn);
sqlDS = new DataSet();
sqlDA.Fill(sqlDS, "wswxx");
DataGridView1.DataSource = sqlDS.Tables["wswxx"];
}
//图显示
createPane(zedGraphControl1);
//清空原图像
zedGraphControl1.GraphPane.CurveList.Clear();
zedGraphControl1.GraphPane.GraphObjList.Clear();
}
private void DataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
//Datagridview1显示
//获取行的NO值
string n = "";
n = Convert.ToString(DataGridView.CurrentRow.Cells[0].Value);
using (SqlConnection sqlConn = new SqlConnection(sqlConnStr))
{
sqlDA = new SqlDataAdapter("SELECT * FROM wswxx where no ='" + n + "'", sqlConn);
sqlDS = new DataSet();
sqlDA.Fill(sqlDS, "wswxx");
DataGridView1.DataSource = sqlDS.Tables["wswxx"];
}
//图显示
createPane(zedGraphControl1);
//清空原图像
zedGraphControl1.GraphPane.CurveList.Clear();
zedGraphControl1.GraphPane.GraphObjList.Clear();
}