Пример #1
0
 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());
     }
 }
Пример #2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            AddTast tast = new AddTast();

            tast.Show();
        }