View | Details | Raw Unified | Return to bug 472968
Collapse All | Expand All

(-)System.Windows.Forms/DataGridViewRowCollection.cs (-1 / +5 lines)
Lines 404-410 Link Here
404
			dataGridViewRow.SetIndex (rowIndex);
404
			dataGridViewRow.SetIndex (rowIndex);
405
			dataGridViewRow.SetDataGridView (dataGridView);
405
			dataGridViewRow.SetDataGridView (dataGridView);
406
			CompleteRowCells (dataGridViewRow);
406
			CompleteRowCells (dataGridViewRow);
407
			list[rowIndex] = dataGridViewRow;
407
			list.Insert (rowIndex, dataGridViewRow);
408
			for (int newIndex = rowIndex; newIndex < list.Count; newIndex++) {
409
				DataGridViewRow row = (DataGridViewRow) list [newIndex];
410
				row.SetIndex (newIndex + 1);
411
			}
408
			OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Add, dataGridViewRow));
412
			OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Add, dataGridViewRow));
409
			if (raiseEvent)
413
			if (raiseEvent)
410
				DataGridView.OnRowsAdded (new DataGridViewRowsAddedEventArgs (rowIndex, 1));
414
				DataGridView.OnRowsAdded (new DataGridViewRowsAddedEventArgs (rowIndex, 1));

Return to bug 472968