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;
61 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)) 11552DataGridViewRow dataGridViewRow = Rows[e.RowIndex]; 11553GetCellInternal(e.ColumnIndex, e.RowIndex).OnClickInternal(e); 11631DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11633if (e.RowIndex >= 0 && dataGridViewCell.ContentClickUnsharesRowInternal(e)) 11635DataGridViewRow dataGridViewRow = Rows[e.RowIndex]; 11636GetCellInternal(e.ColumnIndex, e.RowIndex).OnContentClickInternal(e); 11655DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11657if (e.RowIndex >= 0 && dataGridViewCell.ContentDoubleClickUnsharesRowInternal(e)) 11659DataGridViewRow dataGridViewRow = Rows[e.RowIndex]; 11660GetCellInternal(e.ColumnIndex, e.RowIndex).OnContentDoubleClickInternal(e); 11699DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11701if (e.RowIndex >= 0 && dataGridViewCell.DoubleClickUnsharesRowInternal(e)) 11703DataGridViewRow dataGridViewRow = Rows[e.RowIndex]; 11704GetCellInternal(e.ColumnIndex, e.RowIndex).OnDoubleClickInternal(e); 11765UpdateCellErrorText(e.ColumnIndex, e.RowIndex); 12606_ptMouseEnteredCell.Y = e.RowIndex; 12608DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12610if (e.RowIndex >= 0 && dataGridViewCell.MouseEnterUnsharesRowInternal(e.RowIndex)) 12612DataGridViewRow dataGridViewRow = Rows[e.RowIndex]; 12613GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseEnterInternal(e.RowIndex); 12617dataGridViewCell.OnMouseEnterInternal(e.RowIndex); 12630DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12632if (e.RowIndex >= 0 && dataGridViewCell.MouseLeaveUnsharesRowInternal(e.RowIndex)) 12634DataGridViewRow dataGridViewRow = Rows[e.RowIndex]; 12635GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseLeaveInternal(e.RowIndex); 12639dataGridViewCell.OnMouseLeaveInternal(e.RowIndex); 12841OnCellCommonChange(e.ColumnIndex, e.RowIndex); 13134OnCellCommonChange(e.ColumnIndex, e.RowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
434ptCurrentCell.Y == e.RowIndex && 789ptCurrentCell.Y == e.RowIndex &&
System.Windows.Forms.Tests (17)
System\Windows\Forms\DataGridViewCellContextMenuStripNeededEventArgsTests.cs (1)
17Assert.Equal(rowIndex, e.RowIndex);
System\Windows\Forms\DataGridViewCellEventArgsTests.cs (1)
17Assert.Equal(rowIndex, e.RowIndex);
System\Windows\Forms\DataGridViewCellTests.cs (13)
174Assert.Equal(0, e.RowIndex); 211Assert.Equal(0, e.RowIndex); 313Assert.Equal(0, e.RowIndex); 794Assert.Equal(0, e.RowIndex); 855Assert.Equal(0, e.RowIndex); 1215Assert.Equal(0, e.RowIndex); 2439Assert.Equal(0, e.RowIndex); 3977Assert.Equal(rowIndex, e.RowIndex); 4016Assert.Equal(rowIndex, e.RowIndex); 4059Assert.Equal(rowIndex, e.RowIndex); 4102Assert.Equal(rowIndex, e.RowIndex); 4328Assert.Equal(0, e.RowIndex); 4365Assert.Equal(0, e.RowIndex);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (2)
2390Assert.Equal(0, e.RowIndex); 2427Assert.Equal(0, e.RowIndex);
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;