Пример #1
0
 private void dgvActions_DragDropSortedRow(object sender, DataGridViewExt.MovingRowArgs e)
 {
     logic.moveEventItem(e.Data.from, e.Data.to);
 }
Пример #2
0
        protected void removeRow(DataGridViewExt dgv, DataGridViewButtonColumn btn, DataGridViewCellEventArgs idx)
        {
            if(idx.RowIndex == -1 || idx.ColumnIndex == -1) {
                return; //headers
            }

            if(idx.ColumnIndex == dgv.Columns.IndexOf(btn) && idx.RowIndex < dgv.Rows.Count - 1) {
                dgv.Rows.Remove(dgv.Rows[idx.RowIndex]);
                notice(true);
            }
        }