4 writes to _row
System.Windows.Forms (4)
System\Windows\Forms\Controls\DataGridView\DataGridView.HitTestInfo.cs (1)
29_row = _col = -1;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
9415hti._row = GetRowIndexFromY(y, out int yRowTopEdge); 9482hti._row = GetRowIndexFromY(y, out int yRowTopEdge); 12115hti._row = lastVisibleRowIndex;
164 references to _row
System.Windows.Forms (164)
System\Windows\Forms\Controls\DataGridView\DataGridView.HitTestInfo.cs (5)
53return _row; 95value is HitTestInfo hti && _type == hti._type && _row == hti._row && _col == hti._col; 100public override int GetHashCode() => HashCode.Combine(_type, _row, _col); 107return $"{{ Type:{_type}, Column:{_col}, Row:{_row} }}";
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (159)
5768hti._row, 5857hti._row, 8601&& hti._row >= 0 8602&& (Rows.GetRowState(hti._row) & DataGridViewElementStates.Frozen) == 0) 8699int firstRowIndex = hti._row >= 0 ? hti._row : Rows.GetFirstRow(DataGridViewElementStates.Visible); 9416if (hti._row < 0) 9421Debug.Assert(yRowTopEdge == GetRowYFromIndex(hti._row)); 9427int rowHeight = Rows.SharedRow(hti._row).GetHeight(hti._row); 9432if (RowIsResizable(hti._row) && AutoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 9442if (hti._row != DisplayedBandsInfo.FirstDisplayedScrollingRow || DisplayedBandsInfo.NumDisplayedFrozenRows > 0) 9444indexTmp = Rows.GetPreviousRow(hti._row, DataGridViewElementStates.Visible); 9483if (hti._col < 0 || hti._row < 0) 9489Debug.Assert(yRowTopEdge == GetRowYFromIndex(hti._row)); 9569int rowHeight = Rows.SharedRow(hti._row).GetHeight(hti._row); 9572if (RowIsResizable(hti._row) && AutoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 9581if (hti._row != DisplayedBandsInfo.FirstDisplayedScrollingRow || DisplayedBandsInfo.NumDisplayedFrozenRows > 0) 9583indexTmp = Rows.GetPreviousRow(hti._row, 9610if (hti._row == rowIndex 9659if (hti._col >= 0 && hti._row >= 0) 9671else if (_dataGridViewOper[OperationTrackCellSelect] && hti._col >= 0 && hti._row >= 0) 11910Debug.Assert(_ptMouseDownCell.Y == hti._row); 11971int rowIndex = (hti._typeInternal == DataGridViewHitTestTypeInternal.RowResizeBottom) ? hti._row : hti._adjacentRow; 12068if (_ptCurrentCell.X >= 0 && (_ptCurrentCell.X != hti._col || _ptCurrentCell.Y != hti._row)) 12073forCurrentCellChange: _ptCurrentCell.X != hti._col || _ptCurrentCell.Y != hti._row, 12074forCurrentRowChange: _ptCurrentCell.Y != hti._row)) 12106if (hti._row >= Rows.Count) 12132&& IsSharedCellSelected(Rows.SharedRow(hti._row).Cells[hti._col], hti._row) 12143RemoveIndividuallySelectedCells(hti._col, hti._row); 12168hti._row); 12172SetSelectedCellCore(hti._col, hti._row, selected: true); 12177SetSelectedCellCore(hti._col, hti._row, selected: true); 12182SetSelectedCellCore(hti._col, hti._row, selected: false); 12187hti._row, 12276hti._row, 12287&& (Columns[hti._col].Selected || IsSharedCellSelected(Rows.SharedRow(hti._row).Cells[hti._col], hti._row)) 12307SetSelectedCellCore(hti._col, hti._row, true); 12327RemoveIndividuallySelectedCells(hti._col, hti._row); 12358hti._row); 12362SetSelectedCellCore(hti._col, hti._row, true); 12377SetSelectedCellCore(hti._col, hti._row, false); 12382SetSelectedCellCore(hti._col, hti._row, false); 12388hti._row, 12398if (isControlDown && ((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0)) 12406_trackRow = hti._row; 12430if (_selectedBandIndexes[bandIndex] != hti._row) 12457if (hti._row >= _ptAnchorCell.Y) 12459SelectRowRange(_ptAnchorCell.Y, hti._row, true); 12463SelectRowRange(hti._row, _ptAnchorCell.Y, true); 12466else if ((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) == 0) 12468Debug.Assert(_selectedBandIndexes.Contains(hti._row) == 12469((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0)); 12470SetSelectedRowCore(hti._row, true); 12475Debug.Assert(_selectedBandIndexes.Contains(hti._row)); 12476SetSelectedRowCore(hti._row, false); 12481hti._row, 12492&& (((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0) 12493|| IsSharedCellSelected(Rows.SharedRow(hti._row).Cells[hti._col], hti._row)) 12513SetSelectedCellCore(hti._col, hti._row, true); 12533RemoveIndividuallySelectedCells(hti._col, hti._row); 12564hti._row); 12568SetSelectedCellCore(hti._col, hti._row, selected: true); 12583SetSelectedCellCore(hti._col, hti._row, selected: false); 12588SetSelectedCellCore(hti._col, hti._row, false); 12594hti._row, 12767if ((hti._col != _ptCurrentCell.X || hti._row != _ptCurrentCell.Y) 12768&& !CommitEditForOperation(hti._col, hti._row, forCurrentCellChange: true)) 12777if (_ptAnchorCell.X == -1 || IsInnerCellOutOfBounds(hti._col, hti._row)) 12788hti._row); 12790if (hti._col != _ptCurrentCell.X || hti._row != _ptCurrentCell.Y) 12794hti._row, 14952OnCellDoubleClick(new DataGridViewCellEventArgs(hti._col, hti._row)); 15874&& _ptMouseDownCell.Y == hti._row 15891dgvcme = new DataGridViewCellMouseEventArgs(hti._col, hti._row, mouseX, e.Y - hti.RowY, e); 15895OnCellClick(new DataGridViewCellEventArgs(hti._col, hti._row)); 15962if (_ptMouseDownCell.X == hti._col && _ptMouseDownCell.Y == hti._row) 15975dgvcme = new DataGridViewCellMouseEventArgs(hti._col, hti._row, mouseX, e.Y - hti.RowY, e); 16050int rowIndex = (hti._typeInternal == DataGridViewHitTestTypeInternal.RowResizeBottom) ? hti._row : hti._adjacentRow; 16119_ptMouseDownCell.Y = hti._row; 16127DataGridViewCellMouseEventArgs dgvcme = new(hti._col, hti._row, mouseX, e.Y - hti.RowY, e); 16314else if (_dataGridViewOper[OperationTrackRowSelect] && hti._row >= 0) 16318else if (_dataGridViewOper[OperationTrackCellSelect] && hti._col >= 0 && hti._row >= 0) 16365dgvcme = new DataGridViewCellMouseEventArgs(hti._col, hti._row, mouseX, e.Y - hti.RowY, meTmp); 16369dgvcme = new DataGridViewCellMouseEventArgs(hti._col, hti._row, mouseX, e.Y - hti.RowY, e); 16374&& hti._row >= 0 16375&& _ptMouseDownCell.Y == hti._row 16439OnCellMouseUp(new DataGridViewCellMouseEventArgs(hti._col, hti._row, mouseX, e.Y - hti.RowY, e)); 17943if (isControlDown && ((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0)) 17951if (dataGridViewColumn is not null && hti._row != _ptCurrentCell.Y) 17961fireRowLeave: hti._row != _ptCurrentCell.Y, 17962fireRowEnter: hti._row != _ptCurrentCell.Y, 18011if (hti._row >= Rows.Count) 18038else if ((Rows.GetRowState(hti._row) & DataGridViewElementStates.Visible) == 0) 18046_trackRow = hti._row; 18071if (_selectedBandIndexes[bandIndex] != hti._row) 18107if (hti._row >= _ptAnchorCell.Y) 18109SelectRowRange(_ptAnchorCell.Y, hti._row, true); 18113SelectRowRange(hti._row, _ptAnchorCell.Y, true); 18116else if ((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) == 0) 18118Debug.Assert(_selectedBandIndexes.Contains(hti._row) == 18119((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0)); 18120SetSelectedRowCore(hti._row, true); 18125if (hti._row != _ptCurrentCell.Y) 18127if (IsInnerCellOutOfBounds(dataGridViewColumn.Index, hti._row)) 18133bool success = ScrollIntoView(dataGridViewColumn.Index, hti._row, false); 18135if (IsInnerCellOutOfBounds(dataGridViewColumn.Index, hti._row)) 18140success = SetCurrentCellAddressCore(dataGridViewColumn.Index, hti._row, !selectRowRange, false, true); 18162Debug.Assert(_selectedBandIndexes.Contains(hti._row)); 18163SetSelectedRowCore(hti._row, false); 18402Debug.Assert(hti._row >= 0); 18406&& hti._row != _ptCurrentCell.Y 18407&& !CommitEditForOperation(_ptCurrentCell.X, hti._row, forCurrentCellChange: true)) 18413if (IsRowOutOfBounds(hti._row)) 18421if (_trackRowEdge >= _trackRow && hti._row > _trackRowEdge && _trackRowEdge >= 0) 18424hti._row, true); 18425_trackRowEdge = hti._row; 18427else if (_trackRowEdge > _trackRow && hti._row < _trackRowEdge && hti._row >= _trackRow && _trackRowEdge >= 0) 18429SelectRowRange(Rows.GetNextRow(hti._row, DataGridViewElementStates.Visible), 18431_trackRowEdge = hti._row; 18433else if (hti._row > _trackRow && _trackRowEdge == -1) 18436hti._row, true); 18437_trackRowEdge = hti._row; 18439else if (_trackRowEdge <= _trackRow && hti._row < _trackRowEdge && _trackRowEdge >= 0) 18441SelectRowRange(hti._row, 18444_trackRowEdge = hti._row; 18446else if (_trackRowEdge < _trackRow && hti._row > _trackRowEdge && hti._row <= _trackRow && _trackRowEdge >= 0) 18449Rows.GetPreviousRow(hti._row, DataGridViewElementStates.Visible), 18451_trackRowEdge = hti._row; 18453else if (hti._row < _trackRow && _trackRowEdge == -1) 18455SelectRowRange(hti._row, 18458_trackRowEdge = hti._row; 18460else if (_trackRowEdge > _trackRow && hti._row < _trackRow) 18464SelectRowRange(hti._row, 18467_trackRowEdge = hti._row; 18469else if (hti._row > _trackRow && _trackRowEdge < _trackRow && _trackRowEdge >= 0) 18475hti._row, true); 18476_trackRowEdge = hti._row; 18484if (_ptCurrentCell.Y != -1 && hti._row != _ptCurrentCell.Y) 18486if (IsRowOutOfBounds(hti._row)) 18492hti._row, 29164if (_ptMouseEnteredCell.X != htiToUse._col || _ptMouseEnteredCell.Y != htiToUse._row) 29176dgvce = new DataGridViewCellEventArgs(htiToUse._col, htiToUse._row); 29188DataGridViewCellMouseEventArgs dgvcme = new(htiToUse._col, htiToUse._row, mouseX, e.Y - htiToUse.RowY, e); 29883if (hti._row >= 0) 29894if (hti._col >= 0 && hti._row >= 0) 29902if (_dataGridViewOper[OperationTrackRowSelect] && hti._row >= 0) 29906else if (_dataGridViewOper[OperationTrackCellSelect] && hti._col >= 0 && hti._row >= 0) 29980dataGridViewCell = Rows.SharedRow(hti._row).Cells[hti._col]; 29983Debug.Assert(hti._row == -1); 29988dataGridViewCell = Rows.SharedRow(hti._row).HeaderCell; 29991Debug.Assert(hti._row == -1); 29998? dataGridViewCell.GetInheritedContextMenuStrip(hti._row)