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;
88 references to RowIndex
System.Windows.Forms (88)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (43)
5780&& dgvcme.RowIndex == _lastMouseClickInfo.Row) 5794dgvcme.RowIndex, 5803if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5814if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5816OnCellDoubleClick(new DataGridViewCellEventArgs(dgvcme.ColumnIndex, dgvcme.RowIndex)); 5828if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5875if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5877OnCellClick(new DataGridViewCellEventArgs(dgvcme.ColumnIndex, dgvcme.RowIndex)); 5883if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5885OnCellDoubleClick(new DataGridViewCellEventArgs(dgvcme.ColumnIndex, dgvcme.RowIndex)); 5891if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5899if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5907if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5924dgvcme.RowIndex, 11846DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11848if (e.RowIndex >= 0 && dataGridViewCell.MouseClickUnsharesRowInternal(e)) 11851_ = Rows[e.RowIndex]; 11852GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseClickInternal(e); 11867DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11869if (e.RowIndex >= 0 && dataGridViewCell.MouseDoubleClickUnsharesRowInternal(e)) 11872_ = Rows[e.RowIndex]; 11873GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseDoubleClickInternal(e); 11888DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11897Point ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.RowIndex, e.X, e.Y); 11933if (e.RowIndex >= 0 && dataGridViewCell.MouseDownUnsharesRowInternal(e)) 11936_ = Rows[e.RowIndex]; 11937GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseDownInternal(e); 12655DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12657if (e.RowIndex >= 0 && dataGridViewCell.MouseMoveUnsharesRowInternal(e)) 12660_ = Rows[e.RowIndex]; 12661GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseMoveInternal(e); 12680Point ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.RowIndex, e.X, e.Y); 12713DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12715if (e.RowIndex >= 0 && dataGridViewCell.MouseUpUnsharesRowInternal(e)) 12718_ = Rows[e.RowIndex]; 12719GetCellInternal(e.ColumnIndex, e.RowIndex).OnMouseUpInternal(e); 15897if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 15918if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 15929if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 15986if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 16036if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 16382if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 25402_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)
2916DataGridView.CellMouseDownInContentBounds = GetContentBounds(e.RowIndex).Contains(e.X, e.Y); 2918if (((ColumnIndex < 0 || e.RowIndex < 0) && DataGridView.ApplyVisualStylesToHeaderCells) || 2919((ColumnIndex >= 0 && e.RowIndex >= 0) && DataGridView.ApplyVisualStylesToInnerCells)) 2921DataGridView.InvalidateCell(ColumnIndex, e.RowIndex); 2975OnCellDataAreaMouseEnterInternal(e.RowIndex); 2979OnCellErrorAreaMouseEnterInternal(e.RowIndex); 2987OnCellErrorAreaMouseEnterInternal(e.RowIndex); 2995OnCellDataAreaMouseEnterInternal(e.RowIndex); 3021if (((ColumnIndex < 0 || e.RowIndex < 0) && DataGridView.ApplyVisualStylesToHeaderCells) || 3022((ColumnIndex >= 0 && e.RowIndex >= 0) && DataGridView.ApplyVisualStylesToInnerCells)) 3024DataGridView.InvalidateCell(ColumnIndex, e.RowIndex); 3027if (e.Button == MouseButtons.Left && GetContentBounds(e.RowIndex).Contains(x, y)) 3029DataGridView.OnCommonCellContentClick(e.ColumnIndex, e.RowIndex, e.Clicks > 1); 3034if (DataGridView is not null && e.ColumnIndex < DataGridView.Columns.Count && e.RowIndex < DataGridView.Rows.Count) 3973if (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)