// button up click - moves selected row Down
        private void btnDown_Click(object sender, EventArgs e)
        {
            DataGridView dgv = imgPathDataGridView;

            try
            {
                DGVManipulation.MoveDGVRowDown(dgv);
                pictureBox.Image = Image.FromFile(dgv.CurrentRow.Cells[2].Value.ToString());
            }
            catch { }
        }
        private void moveDownButton_Click(object sender, EventArgs e)
        {
            if (wordsDataGridView.RowCount == 0)
            {
                return;
            }
            DGVManipulation.MoveDGVRowDown(wordsDataGridView);
            int rowIndex = wordsDataGridView.SelectedCells[0].OwningRow.Index;

            moveDownItem(wordsList, rowIndex);
            moveDownItem(colorsList, rowIndex);
        }
 private void imgPathDataGridView_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.Left)
     {
         DataGridView dgv = imgPathDataGridView;
         try
         {
             DGVManipulation.MoveDGVRowUp(dgv);
         }
         catch { }
     }
     if (e.Control && e.KeyCode == Keys.Right)
     {
         DataGridView dgv = imgPathDataGridView;
         try
         {
             DGVManipulation.MoveDGVRowDown(dgv);
         }
         catch { }
     }
 }
Ejemplo n.º 4
0
        private void moveDownButton_Click(object sender, EventArgs e)
        {
            DataGridView dgv = audioPathDataGridView;

            DGVManipulation.MoveDGVRowDown(dgv);
        }