Implemented interface member:
property
RowIndex
System.Windows.Forms.IDataGridViewCellEventArgs.RowIndex
1 write to RowIndex
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellEventArgs.cs (1)
19RowIndex = rowIndex;
65 references to RowIndex
System.Windows.Forms (40)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (4)
1356if (e.RowIndex != _owner.NewRowIndex 1358&& CurrencyManager.Position != e.RowIndex) 1362CurrencyManager.Position = e.RowIndex; 1366DataGridViewCellCancelEventArgs dgvce = new(e.ColumnIndex, e.RowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (34)
11548DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11550if (e.RowIndex >= 0 && dataGridViewCell.ClickUnsharesRowInternal(e)) 11553_ = Rows[e.RowIndex]; 11554GetCellInternal(e.ColumnIndex, e.RowIndex).OnClickInternal(e); 11632DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11634if (e.RowIndex >= 0 && dataGridViewCell.ContentClickUnsharesRowInternal(e)) 11637_ = Rows[e.RowIndex]; 11638GetCellInternal(e.ColumnIndex, e.RowIndex).OnContentClickInternal(e); 11657DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11659if (e.RowIndex >= 0 && dataGridViewCell.ContentDoubleClickUnsharesRowInternal(e)) 11662_ = Rows[e.RowIndex]; 11663GetCellInternal(e.ColumnIndex, e.RowIndex).OnContentDoubleClickInternal(e); 11702DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11704if (e.RowIndex >= 0 && dataGridViewCell.DoubleClickUnsharesRowInternal(e)) 11707_ = Rows[e.RowIndex]; 11708GetCellInternal(e.ColumnIndex, e.RowIndex).OnDoubleClickInternal(e); 11769UpdateCellErrorText(e.ColumnIndex, e.RowIndex); 12613_ptMouseEnteredCell.Y = e.RowIndex; 12615DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12617if (e.RowIndex >= 0 && dataGridViewCell.MouseEnterUnsharesRowInternal(e.RowIndex)) 12620_ = Rows[e.RowIndex]; 12621GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseEnterInternal(e.RowIndex); 12625dataGridViewCell.OnMouseEnterInternal(e.RowIndex); 12638DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12640if (e.RowIndex >= 0 && dataGridViewCell.MouseLeaveUnsharesRowInternal(e.RowIndex)) 12643_ = Rows[e.RowIndex]; 12644GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseLeaveInternal(e.RowIndex); 12648dataGridViewCell.OnMouseLeaveInternal(e.RowIndex); 12852OnCellCommonChange(e.ColumnIndex, e.RowIndex); 13145OnCellCommonChange(e.ColumnIndex, e.RowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
434ptCurrentCell.Y == e.RowIndex && 790ptCurrentCell.Y == e.RowIndex &&
System.Windows.Forms.Tests (21)
System\Windows\Forms\DataGridViewCellContextMenuStripNeededEventArgsTests.cs (1)
19Assert.Equal(rowIndex, e.RowIndex);
System\Windows\Forms\DataGridViewCellEventArgsTests.cs (1)
19Assert.Equal(rowIndex, e.RowIndex);
System\Windows\Forms\DataGridViewCellTests.cs (13)
176Assert.Equal(0, e.RowIndex); 213Assert.Equal(0, e.RowIndex); 315Assert.Equal(0, e.RowIndex); 796Assert.Equal(0, e.RowIndex); 857Assert.Equal(0, e.RowIndex); 1217Assert.Equal(0, e.RowIndex); 2441Assert.Equal(0, e.RowIndex); 3979Assert.Equal(rowIndex, e.RowIndex); 4018Assert.Equal(rowIndex, e.RowIndex); 4061Assert.Equal(rowIndex, e.RowIndex); 4104Assert.Equal(rowIndex, e.RowIndex); 4330Assert.Equal(0, e.RowIndex); 4367Assert.Equal(0, e.RowIndex);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (2)
2389Assert.Equal(0, e.RowIndex); 2426Assert.Equal(0, e.RowIndex);
System\Windows\Forms\DataGridViewLinkCellTests.cs (4)
527if (e.ColumnIndex == 0 && e.RowIndex == 0) 532if (e.ColumnIndex == 0 && e.RowIndex == 0) 555if (e.ColumnIndex == 0 && e.RowIndex == 0) 560if (e.ColumnIndex == 0 && e.RowIndex == 0)
WinFormsControlsTest (4)
DataGridViewInVirtualModeTest.cs (4)
130if (e.RowIndex >= _customers.Count && e.RowIndex != dataGridView1.Rows.Count - 1) 137else if (_customerInEdit is not null && e.RowIndex < _customers.Count) 140_customers[e.RowIndex] = _customerInEdit;