Implemented interface member:
property
RowIndex
System.Windows.Forms.IDataGridViewCellEventArgs.RowIndex
1 write to RowIndex
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellMouseEventArgs.cs (1)
21RowIndex = rowIndex;
89 references to RowIndex
System.Windows.Forms (88)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (43)
5783&& dgvcme.RowIndex == _lastMouseClickInfo.Row) 5797dgvcme.RowIndex, 5806if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5817if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5819OnCellDoubleClick(new DataGridViewCellEventArgs(dgvcme.ColumnIndex, dgvcme.RowIndex)); 5831if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5878if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5880OnCellClick(new DataGridViewCellEventArgs(dgvcme.ColumnIndex, dgvcme.RowIndex)); 5886if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5888OnCellDoubleClick(new DataGridViewCellEventArgs(dgvcme.ColumnIndex, dgvcme.RowIndex)); 5894if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5902if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5910if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5927dgvcme.RowIndex, 11849DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11851if (e.RowIndex >= 0 && dataGridViewCell.MouseClickUnsharesRowInternal(e)) 11854_ = Rows[e.RowIndex]; 11855GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseClickInternal(e); 11870DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11872if (e.RowIndex >= 0 && dataGridViewCell.MouseDoubleClickUnsharesRowInternal(e)) 11875_ = Rows[e.RowIndex]; 11876GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseDoubleClickInternal(e); 11891DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11900Point ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.RowIndex, e.X, e.Y); 11936if (e.RowIndex >= 0 && dataGridViewCell.MouseDownUnsharesRowInternal(e)) 11939_ = Rows[e.RowIndex]; 11940GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseDownInternal(e); 12658DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12660if (e.RowIndex >= 0 && dataGridViewCell.MouseMoveUnsharesRowInternal(e)) 12663_ = Rows[e.RowIndex]; 12664GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseMoveInternal(e); 12683Point ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.RowIndex, e.X, e.Y); 12716DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12718if (e.RowIndex >= 0 && dataGridViewCell.MouseUpUnsharesRowInternal(e)) 12721_ = Rows[e.RowIndex]; 12722GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseUpInternal(e); 15900if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 15921if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 15932if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 15989if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 16039if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 16385if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 25405_lastMouseClickInfo.Row = dgvcme.RowIndex;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (7)
517UpdateButtonState(ButtonState | ButtonState.Pushed, e.RowIndex); 555s_mouseInContentBounds = GetContentBounds(e.RowIndex).Contains(e.X, e.Y); 560DataGridView.InvalidateCell(ColumnIndex, e.RowIndex); 564e.RowIndex == DataGridView.MouseDownCellAddress.Y && 571UpdateButtonState(ButtonState | ButtonState.Pushed, e.RowIndex); 575UpdateButtonState(ButtonState & ~ButtonState.Pushed, e.RowIndex); 592UpdateButtonState(ButtonState & ~ButtonState.Pushed, e.RowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (15)
2927DataGridView.CellMouseDownInContentBounds = GetContentBounds(e.RowIndex).Contains(e.X, e.Y); 2929if (((ColumnIndex < 0 || e.RowIndex < 0) && DataGridView.ApplyVisualStylesToHeaderCells) || 2930((ColumnIndex >= 0 && e.RowIndex >= 0) && DataGridView.ApplyVisualStylesToInnerCells)) 2932DataGridView.InvalidateCell(ColumnIndex, e.RowIndex); 2986OnCellDataAreaMouseEnterInternal(e.RowIndex); 2990OnCellErrorAreaMouseEnterInternal(e.RowIndex); 2998OnCellErrorAreaMouseEnterInternal(e.RowIndex); 3006OnCellDataAreaMouseEnterInternal(e.RowIndex); 3032if (((ColumnIndex < 0 || e.RowIndex < 0) && DataGridView.ApplyVisualStylesToHeaderCells) || 3033((ColumnIndex >= 0 && e.RowIndex >= 0) && DataGridView.ApplyVisualStylesToInnerCells)) 3035DataGridView.InvalidateCell(ColumnIndex, e.RowIndex); 3038if (e.Button == MouseButtons.Left && GetContentBounds(e.RowIndex).Contains(x, y)) 3040DataGridView.OnCommonCellContentClick(e.ColumnIndex, e.RowIndex, e.Clicks > 1); 3045if (DataGridView is not null && e.ColumnIndex < DataGridView.Columns.Count && e.RowIndex < DataGridView.Rows.Count) 3984if (GetErrorIconBounds(e.RowIndex).Contains(e.X, e.Y))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (8)
870UpdateButtonState(ButtonState | ButtonState.Pushed, e.RowIndex); 908s_mouseInContentBounds = GetContentBounds(e.RowIndex).Contains(e.X, e.Y); 913DataGridView.InvalidateCell(ColumnIndex, e.RowIndex); 917e.RowIndex == DataGridView.MouseDownCellAddress.Y && 924UpdateButtonState(ButtonState | ButtonState.Pushed, e.RowIndex); 928UpdateButtonState(ButtonState & ~ButtonState.Pushed, e.RowIndex); 945UpdateButtonState(ButtonState & ~ButtonState.Pushed, e.RowIndex); 946NotifyMSAAClient(e.ColumnIndex, e.RowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
1667if (ptCurrentCell.X == e.ColumnIndex && ptCurrentCell.Y == e.RowIndex) 1679CheckDropDownList(e.X, e.Y, e.RowIndex); 1741int rowIndex = e.RowIndex;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (2)
454UpdateButtonState(ButtonState.Pushed, e.RowIndex); 510UpdateButtonState(ButtonState.Normal, e.RowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (9)
693LinkBoundsContainPoint(e.X, e.Y, e.RowIndex); 700if (LinkBoundsContainPoint(e.X, e.Y, e.RowIndex)) 719TrackVisitedState && LinkBoundsContainPoint(e.X, e.Y, e.RowIndex); 753if (LinkBoundsContainPoint(e.X, e.Y, e.RowIndex)) 756DataGridView.InvalidateCell(ColumnIndex, e.RowIndex); 791if (LinkBoundsContainPoint(e.X, e.Y, e.RowIndex)) 796DataGridView.InvalidateCell(ColumnIndex, e.RowIndex); 812DataGridView.InvalidateCell(ColumnIndex, e.RowIndex); 826if (LinkBoundsContainPoint(e.X, e.Y, e.RowIndex) && TrackVisitedState)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
576if (ptCurrentCell.X == e.ColumnIndex && ptCurrentCell.Y == e.RowIndex && e.Button == MouseButtons.Left)
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (1)
24Assert.Equal(rowIndex, e.RowIndex);