private void dgvActions_DragDropSortedRow(object sender, DataGridViewExt.MovingRowArgs e) { logic.moveEventItem(e.Data.from, e.Data.to); }
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); } }