티스토리 뷰

   int no;

        private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e)

        {

            if (e.RowIndex >= 0)

            {

                DataGridViewRow row = this.dataGridView2.Rows[e.RowIndex];

                no = Convert.ToInt32(row.Cells["순"].Value.ToString());

                

                this.comboBox_chart_type.Text = row.Cells["타입"].Value.ToString();

                this.textBox_title.Text = row.Cells["항목"].Value.ToString();

                this.textBox_time.Text = row.Cells["시간"].Value.ToString();

                this.textBox_value.Text = row.Cells["크기"].Value.ToString();


                


                z2.GraphPane.CurveList.Clear();

                z2.GraphPane.GraphObjList.Clear();

           //     MessageBox.Show(no.ToString());

                //   CreateGraph(chart_time, chart_value, chart_title, chart_type);

                CreateGraph(Convert.ToInt32(this.textBox_time.Text), Convert.ToInt32(this.textBox_value.Text), this.textBox_title.Text, this.comboBox_chart_type.Text);


            }

        }

댓글
최근에 달린 댓글
글 보관함
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
Total
Today
Yesterday
    뽀로로친구에디
    최근에 올라온 글