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