4 writes to row
System.Windows.Forms (4)
winforms\Managed\System\WinForms\DataGridViewHitTestInfo.cs (1)
39this.row = this.col = -1;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (3)
9546hti.row = GetRowIndexFromY(y, out yRowTopEdge); 9623hti.row = GetRowIndexFromY(y, out yRowTopEdge); 12484hti.row = lastVisibleRowIndex;
164 references to row
System.Windows.Forms (164)
winforms\Managed\System\WinForms\DataGridViewHitTestInfo.cs (5)
65return this.row; 116this.row == hti.row && 129this.row, 139return "{ Type:" + type.ToString() + ", Column:" + col.ToString(CultureInfo.CurrentCulture) + ", Row:" + row.ToString(CultureInfo.CurrentCulture) + " }";
winforms\Managed\System\WinForms\DataGridViewMethods.cs (159)
5826DataGridViewCellMouseEventArgs dgvcme = new DataGridViewCellMouseEventArgs(hti.col, hti.row, mouseX, me.Y - hti.RowY, me); 5901dgvcme = new DataGridViewCellMouseEventArgs(hti.col, hti.row, mouseX, me.Y - hti.RowY, me); 8676hti.row >= 0 && 8677(this.Rows.GetRowState(hti.row) & DataGridViewElementStates.Frozen) == 0) 8780if (hti.row >= 0) 8782firstRowIndex = hti.row; 9547if (hti.row < 0) 9551Debug.Assert(yRowTopEdge == GetRowYFromIndex(hti.row)); 9563int rowHeight = this.Rows.SharedRow(hti.row).GetHeight(hti.row); 9568if (RowIsResizable(hti.row) && this.AutoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 9578if (hti.row != this.displayedBandsInfo.FirstDisplayedScrollingRow || this.displayedBandsInfo.NumDisplayedFrozenRows > 0) 9580indexTmp = this.Rows.GetPreviousRow(hti.row, DataGridViewElementStates.Visible); 9624if (hti.col < 0 || hti.row < 0) 9629Debug.Assert(yRowTopEdge == GetRowYFromIndex(hti.row)); 9726int rowHeight = this.Rows.SharedRow(hti.row).GetHeight(hti.row); 9729if (RowIsResizable(hti.row) && this.AutoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 9738if (hti.row != this.displayedBandsInfo.FirstDisplayedScrollingRow || this.displayedBandsInfo.NumDisplayedFrozenRows > 0) 9740indexTmp = this.Rows.GetPreviousRow(hti.row, 9766if (hti.row == rowIndex && 9816if (hti.col >= 0 && hti.row >= 0) 9828else if (this.dataGridViewOper[DATAGRIDVIEWOPER_trackCellSelect] && hti.col >= 0 && hti.row >= 0) 12286Debug.Assert(this.ptMouseDownCell.Y == hti.row); 12349int rowIndex = (hti.typeInternal == DataGridViewHitTestTypeInternal.RowResizeBottom) ? hti.row : hti.adjacentRow; 12441(this.ptCurrentCell.X != hti.col || this.ptCurrentCell.Y != hti.row)) 12445this.ptCurrentCell.X != hti.col || this.ptCurrentCell.Y != hti.row /*forCurrentCellChange*/, 12446this.ptCurrentCell.Y != hti.row /*forCurrentRowChange*/)) 12475if (hti.row >= this.Rows.Count) 12501IsSharedCellSelected(this.Rows.SharedRow(hti.row).Cells[hti.col], hti.row) && 12511RemoveIndividuallySelectedCells(hti.col, hti.row); 12528this.ptAnchorCell.Y, ref oldEdgeRowIndex, hti.row); 12532SetSelectedCellCore(hti.col, hti.row, true); 12537SetSelectedCellCore(hti.col, hti.row, true); 12542SetSelectedCellCore(hti.col, hti.row, false); 12544bool success = SetCurrentCellAddressCore(hti.col, hti.row, !isShiftDown, false, true); 12625bool success = SetCurrentCellAddressCore(hti.col, hti.row, !isShiftDown, false, true); 12633(this.Columns[hti.col].Selected || IsSharedCellSelected(this.Rows.SharedRow(hti.row).Cells[hti.col], hti.row)) && 12651SetSelectedCellCore(hti.col, hti.row, true); 12670RemoveIndividuallySelectedCells(hti.col, hti.row); 12693this.ptAnchorCell.Y, ref oldEdgeRowIndex, hti.row); 12697SetSelectedCellCore(hti.col, hti.row, true); 12712SetSelectedCellCore(hti.col, hti.row, false); 12717SetSelectedCellCore(hti.col, hti.row, false); 12720bool success = SetCurrentCellAddressCore(hti.col, hti.row, !isShiftDown, false, true); 12728((this.Rows.GetRowState(hti.row) & DataGridViewElementStates.Selected) != 0)) 12735this.trackRow = hti.row; 12758if (this.selectedBandIndexes[bandIndex] != hti.row) 12783if (hti.row >= this.ptAnchorCell.Y) 12785SelectRowRange(this.ptAnchorCell.Y, hti.row, true); 12789SelectRowRange(hti.row, this.ptAnchorCell.Y, true); 12792else if ((this.Rows.GetRowState(hti.row) & DataGridViewElementStates.Selected) == 0) 12794Debug.Assert(this.selectedBandIndexes.Contains(hti.row) == 12795((this.Rows.GetRowState(hti.row) & DataGridViewElementStates.Selected) != 0)); 12796SetSelectedRowCore(hti.row, true); 12801Debug.Assert(this.selectedBandIndexes.Contains(hti.row)); 12802SetSelectedRowCore(hti.row, false); 12804bool success = SetCurrentCellAddressCore(hti.col, hti.row, !isShiftDown, false, true); 12812(((this.Rows.GetRowState(hti.row) & DataGridViewElementStates.Selected) != 0) || 12813IsSharedCellSelected(this.Rows.SharedRow(hti.row).Cells[hti.col], hti.row)) && 12831SetSelectedCellCore(hti.col, hti.row, true); 12850RemoveIndividuallySelectedCells(hti.col, hti.row); 12873this.ptAnchorCell.Y, ref oldEdgeRowIndex, hti.row); 12877SetSelectedCellCore(hti.col, hti.row, true); 12892SetSelectedCellCore(hti.col, hti.row, false); 12897SetSelectedCellCore(hti.col, hti.row, false); 12900bool success = SetCurrentCellAddressCore(hti.col, hti.row, !isShiftDown, false, true); 13136if ((hti.col != this.ptCurrentCell.X || hti.row != this.ptCurrentCell.Y) && 13137!CommitEditForOperation(hti.col, hti.row, true)) 13145if (this.ptAnchorCell.X == -1 || IsInnerCellOutOfBounds(hti.col, hti.row)) 13150this.ptAnchorCell.Y, ref oldEdgeRowIndex, hti.row); 13151if (hti.col != this.ptCurrentCell.X || hti.row != this.ptCurrentCell.Y) 13153bool success = SetCurrentCellAddressCore(hti.col, hti.row, false, false, false); 15448OnCellDoubleClick(new DataGridViewCellEventArgs(hti.col, hti.row)); 16327this.ptMouseDownCell.Y == hti.row && 16344dgvcme = new DataGridViewCellMouseEventArgs(hti.col, hti.row, mouseX, e.Y - hti.RowY, e); 16348OnCellClick(new DataGridViewCellEventArgs(hti.col, hti.row)); 16412if (this.ptMouseDownCell.X == hti.col && this.ptMouseDownCell.Y == hti.row) 16424dgvcme = new DataGridViewCellMouseEventArgs(hti.col, hti.row, mouseX, e.Y - hti.RowY, e); 16484int rowIndex = (hti.typeInternal == DataGridViewHitTestTypeInternal.RowResizeBottom) ? hti.row : hti.adjacentRow; 16541this.ptMouseDownCell.Y = hti.row; 16548DataGridViewCellMouseEventArgs dgvcme = new DataGridViewCellMouseEventArgs(hti.col, hti.row, mouseX, e.Y - hti.RowY, e); 16757else if (this.dataGridViewOper[DATAGRIDVIEWOPER_trackRowSelect] && hti.row >= 0) 16761else if (this.dataGridViewOper[DATAGRIDVIEWOPER_trackCellSelect] && hti.col >= 0 && hti.row >= 0) 16808dgvcme = new DataGridViewCellMouseEventArgs(hti.col, hti.row, mouseX, e.Y - hti.RowY, meTmp); 16812dgvcme = new DataGridViewCellMouseEventArgs(hti.col, hti.row, mouseX, e.Y - hti.RowY, e); 16815hti.row >= 0 && this.ptMouseDownCell.Y == hti.row && 16878OnCellMouseUp(new DataGridViewCellMouseEventArgs(hti.col, hti.row, mouseX, e.Y - hti.RowY, e)); 18426((this.Rows.GetRowState(hti.row) & DataGridViewElementStates.Selected) != 0)) 18433if (dataGridViewColumn != null && hti.row != this.ptCurrentCell.Y) 18442hti.row != this.ptCurrentCell.Y /*fireRowLeave*/, 18443hti.row != this.ptCurrentCell.Y /*fireRowEnter*/, 18481if (hti.row >= this.Rows.Count) 18505else if ((this.Rows.GetRowState(hti.row) & DataGridViewElementStates.Visible) == 0) 18512this.trackRow = hti.row; 18535if (this.selectedBandIndexes[bandIndex] != hti.row) 18569if (hti.row >= this.ptAnchorCell.Y) 18571SelectRowRange(this.ptAnchorCell.Y, hti.row, true); 18575SelectRowRange(hti.row, this.ptAnchorCell.Y, true); 18578else if ((this.Rows.GetRowState(hti.row) & DataGridViewElementStates.Selected) == 0) 18580Debug.Assert(this.selectedBandIndexes.Contains(hti.row) == 18581((this.Rows.GetRowState(hti.row) & DataGridViewElementStates.Selected) != 0)); 18582SetSelectedRowCore(hti.row, true); 18586if (hti.row != this.ptCurrentCell.Y) 18588if (IsInnerCellOutOfBounds(dataGridViewColumn.Index, hti.row)) 18593bool success = ScrollIntoView(dataGridViewColumn.Index, hti.row, false); 18595if (IsInnerCellOutOfBounds(dataGridViewColumn.Index, hti.row)) 18599success = SetCurrentCellAddressCore(dataGridViewColumn.Index, hti.row, !selectRowRange, false, true); 18619Debug.Assert(this.selectedBandIndexes.Contains(hti.row)); 18620SetSelectedRowCore(hti.row, false); 18938Debug.Assert(hti.row >= 0); 18942hti.row != this.ptCurrentCell.Y && 18943!CommitEditForOperation(this.ptCurrentCell.X, hti.row, true)) 18948if (IsRowOutOfBounds(hti.row)) 18956if (this.trackRowEdge >= this.trackRow && hti.row > this.trackRowEdge && this.trackRowEdge >= 0) 18959hti.row, true); 18960this.trackRowEdge = hti.row; 18962else if (this.trackRowEdge > this.trackRow && hti.row < this.trackRowEdge && hti.row >= this.trackRow && this.trackRowEdge >= 0) 18964SelectRowRange(this.Rows.GetNextRow(hti.row, DataGridViewElementStates.Visible), 18966this.trackRowEdge = hti.row; 18968else if (hti.row > this.trackRow && this.trackRowEdge == -1) 18971hti.row, true); 18972this.trackRowEdge = hti.row; 18974else if (this.trackRowEdge <= this.trackRow && hti.row < this.trackRowEdge && this.trackRowEdge >= 0) 18976SelectRowRange(hti.row, 18979this.trackRowEdge = hti.row; 18981else if (this.trackRowEdge < this.trackRow && hti.row > this.trackRowEdge && hti.row <= this.trackRow && this.trackRowEdge >= 0) 18984this.Rows.GetPreviousRow(hti.row, DataGridViewElementStates.Visible), 18986this.trackRowEdge = hti.row; 18988else if (hti.row < this.trackRow && this.trackRowEdge == -1) 18990SelectRowRange(hti.row, 18993this.trackRowEdge = hti.row; 18995else if (this.trackRowEdge > this.trackRow && hti.row < this.trackRow) 18999SelectRowRange(hti.row, 19002this.trackRowEdge = hti.row; 19004else if (hti.row > this.trackRow && this.trackRowEdge < this.trackRow && this.trackRowEdge >= 0) 19010hti.row, true); 19011this.trackRowEdge = hti.row; 19019if (this.ptCurrentCell.Y != -1 && hti.row != this.ptCurrentCell.Y) 19021if (IsRowOutOfBounds(hti.row)) 19026hti.row, 29207if (this.ptMouseEnteredCell.X != htiToUse.col || this.ptMouseEnteredCell.Y != htiToUse.row) 29218dgvce = new DataGridViewCellEventArgs(htiToUse.col, htiToUse.row); 29228DataGridViewCellMouseEventArgs dgvcme = new DataGridViewCellMouseEventArgs(htiToUse.col, htiToUse.row, mouseX, e.Y - htiToUse.RowY, e); 29769if (hti.row >= 0) 29784if (hti.col >= 0 && hti.row >= 0) 29792if (this.dataGridViewOper[DATAGRIDVIEWOPER_trackRowSelect] && hti.row >= 0) 29796else if (this.dataGridViewOper[DATAGRIDVIEWOPER_trackCellSelect] && hti.col >= 0 && hti.row >= 0) 29872dataGridViewCell = this.Rows.SharedRow(hti.row).Cells[hti.col]; 29875Debug.Assert(hti.row == -1); 29880dataGridViewCell = this.Rows.SharedRow(hti.row).HeaderCell; 29883Debug.Assert(hti.row == -1); 29890contextMenuStrip = dataGridViewCell.GetInheritedContextMenuStrip(hti.row);