コード例 #1
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     var a = dataGridView1.Rows[e.RowIndex];
     if (e.ColumnIndex == dataGridView1.Columns["Sua"].Index && e.RowIndex >= 0)
     {
         {
             SuaLoaiDV test = new SuaLoaiDV(a.Cells[2].Value.ToString());
             test.Show();
         }
     }
 }
コード例 #2
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            var a = dataGridView1.Rows[e.RowIndex];

            if (e.ColumnIndex == dataGridView1.Columns["Sua"].Index && e.RowIndex >= 0)
            {
                {
                    SuaLoaiDV test = new SuaLoaiDV(a.Cells[2].Value.ToString());
                    test.Show();
                }
            }
        }