private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == this.dataGridView1.Columns["detail"].Index) { AddTast tast = new AddTast(this.dataGridView1.Rows[e.RowIndex].Cells["ID"].Value.ToString()); tast.Show(); //MessageBox.Show(this.dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString()); } }
private void toolStripButton1_Click(object sender, EventArgs e) { AddTast tast = new AddTast(); tast.Show(); }