93 references to RowIndex
System.Windows.Forms (93)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (7)
568
UpdateButtonState(this.ButtonState | ButtonState.Pushed, e.
RowIndex
);
608
mouseInContentBounds = GetContentBounds(e.
RowIndex
).Contains(e.X, e.Y);
613
this.DataGridView.InvalidateCell(this.ColumnIndex, e.
RowIndex
);
617
e.
RowIndex
== this.DataGridView.MouseDownCellAddress.Y &&
624
UpdateButtonState(this.ButtonState | ButtonState.Pushed, e.
RowIndex
);
628
UpdateButtonState(this.ButtonState & ~ButtonState.Pushed, e.
RowIndex
);
645
UpdateButtonState(this.ButtonState & ~ButtonState.Pushed, e.
RowIndex
);
winforms\Managed\System\WinForms\DataGridViewCell.cs (15)
3354
this.DataGridView.CellMouseDownInContentBounds = GetContentBounds(e.
RowIndex
).Contains(e.X, e.Y);
3356
if (((this.ColumnIndex < 0 || e.
RowIndex
< 0) && this.DataGridView.ApplyVisualStylesToHeaderCells) ||
3357
((this.ColumnIndex >= 0 && e.
RowIndex
>= 0) && this.DataGridView.ApplyVisualStylesToInnerCells))
3359
DataGridView.InvalidateCell(this.ColumnIndex, e.
RowIndex
);
3417
OnCellDataAreaMouseEnterInternal(e.
RowIndex
);
3421
OnCellErrorAreaMouseEnterInternal(e.
RowIndex
);
3428
OnCellErrorAreaMouseEnterInternal(e.
RowIndex
);
3435
OnCellDataAreaMouseEnterInternal(e.
RowIndex
);
3455
if (((this.ColumnIndex < 0 || e.
RowIndex
< 0) && this.DataGridView.ApplyVisualStylesToHeaderCells) ||
3456
((this.ColumnIndex >= 0 && e.
RowIndex
>= 0) && this.DataGridView.ApplyVisualStylesToInnerCells))
3458
this.DataGridView.InvalidateCell(this.ColumnIndex, e.
RowIndex
);
3461
if (e.Button == MouseButtons.Left && GetContentBounds(e.
RowIndex
).Contains(x, y))
3463
this.DataGridView.OnCommonCellContentClick(e.ColumnIndex, e.
RowIndex
, e.Clicks > 1);
3466
if (this.DataGridView != null && e.ColumnIndex < this.DataGridView.Columns.Count && e.
RowIndex
< this.DataGridView.Rows.Count)
4728
if (GetErrorIconBounds(e.
RowIndex
).Contains(e.X, e.Y))
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (8)
1000
UpdateButtonState(this.ButtonState | ButtonState.Pushed, e.
RowIndex
);
1040
mouseInContentBounds = GetContentBounds(e.
RowIndex
).Contains(e.X, e.Y);
1045
this.DataGridView.InvalidateCell(this.ColumnIndex, e.
RowIndex
);
1049
e.
RowIndex
== this.DataGridView.MouseDownCellAddress.Y &&
1056
UpdateButtonState(this.ButtonState | ButtonState.Pushed, e.
RowIndex
);
1060
UpdateButtonState(this.ButtonState & ~ButtonState.Pushed, e.
RowIndex
);
1077
UpdateButtonState(this.ButtonState & ~ButtonState.Pushed, e.
RowIndex
);
1078
NotifyMASSClient(new Point(e.ColumnIndex, e.
RowIndex
));
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (3)
1912
if (ptCurrentCell.X == e.ColumnIndex && ptCurrentCell.Y == e.
RowIndex
)
1924
CheckDropDownList(e.X, e.Y, e.
RowIndex
);
1983
int rowIndex = e.
RowIndex
;
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (2)
565
UpdateButtonState(ButtonState.Pushed, e.
RowIndex
);
619
UpdateButtonState(ButtonState.Normal, e.
RowIndex
);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (9)
792
return LinkBoundsContainPoint(e.X, e.Y, e.
RowIndex
);
804
if (LinkBoundsContainPoint(e.X, e.Y, e.
RowIndex
))
824
return this.TrackVisitedState && LinkBoundsContainPoint(e.X, e.Y, e.
RowIndex
);
858
if (LinkBoundsContainPoint(e.X, e.Y, e.
RowIndex
))
861
this.DataGridView.InvalidateCell(this.ColumnIndex, e.
RowIndex
);
895
if (LinkBoundsContainPoint(e.X, e.Y, e.
RowIndex
))
900
this.DataGridView.InvalidateCell(this.ColumnIndex, e.
RowIndex
);
919
this.DataGridView.InvalidateCell(this.ColumnIndex, e.
RowIndex
);
933
if (LinkBoundsContainPoint(e.X, e.Y, e.
RowIndex
) && this.TrackVisitedState)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (48)
5839
dgvcme.
RowIndex
== this.lastMouseClickInfo.row)
5850
dgvcme = new DataGridViewCellMouseEventArgs(dgvcme.ColumnIndex, dgvcme.
RowIndex
, dgvcme.X, dgvcme.Y, me);
5857
dgvcme.
RowIndex
< this.Rows.Count)
5868
dgvcme.
RowIndex
< this.Rows.Count)
5870
OnCellDoubleClick(new DataGridViewCellEventArgs(dgvcme.ColumnIndex, dgvcme.
RowIndex
));
5880
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.
RowIndex
< this.Rows.Count)
5920
dgvcme.
RowIndex
< this.Rows.Count)
5922
OnCellClick(new DataGridViewCellEventArgs(dgvcme.ColumnIndex, dgvcme.
RowIndex
));
5929
dgvcme.
RowIndex
< this.Rows.Count)
5931
OnCellDoubleClick(new DataGridViewCellEventArgs(dgvcme.ColumnIndex, dgvcme.
RowIndex
));
5937
dgvcme.
RowIndex
< this.Rows.Count)
5945
dgvcme.
RowIndex
< this.Rows.Count)
5953
dgvcme.
RowIndex
< this.Rows.Count)
5966
dgvcme = new DataGridViewCellMouseEventArgs(dgvcme.ColumnIndex, dgvcme.
RowIndex
, dgvcme.X, dgvcme.Y, meTmp);
12198
if (e.
RowIndex
>= this.Rows.Count)
12202
DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.
RowIndex
);
12204
if (e.
RowIndex
>= 0 && dataGridViewCell.MouseClickUnsharesRowInternal(e))
12206
DataGridViewRow dataGridViewRow = this.Rows[e.
RowIndex
];
12207
GetCellInternal(e.ColumnIndex, e.
RowIndex
).OnMouseClickInternal(e);
12230
if (e.
RowIndex
>= this.Rows.Count)
12234
DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.
RowIndex
);
12236
if (e.
RowIndex
>= 0 && dataGridViewCell.MouseDoubleClickUnsharesRowInternal(e))
12238
DataGridViewRow dataGridViewRow = this.Rows[e.
RowIndex
];
12239
GetCellInternal(e.ColumnIndex, e.
RowIndex
).OnMouseDoubleClickInternal(e);
12262
if (e.
RowIndex
>= this.Rows.Count)
12267
DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.
RowIndex
);
12276
Point ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.
RowIndex
, e.X, e.Y);
12312
if (e.
RowIndex
>= 0 && dataGridViewCell.MouseDownUnsharesRowInternal(e))
12314
DataGridViewRow dataGridViewRow = this.Rows[e.
RowIndex
];
12315
GetCellInternal(e.ColumnIndex, e.
RowIndex
).OnMouseDownInternal(e);
12992
if (e.
RowIndex
>= this.Rows.Count)
12996
DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.
RowIndex
);
12998
if (e.
RowIndex
>= 0 && dataGridViewCell.MouseMoveUnsharesRowInternal(e))
13000
DataGridViewRow dataGridViewRow = this.Rows[e.
RowIndex
];
13001
GetCellInternal(e.ColumnIndex, e.
RowIndex
).OnMouseMoveInternal(e);
13024
Point ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.
RowIndex
, e.X, e.Y);
13060
if (e.
RowIndex
>= this.Rows.Count)
13064
DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.
RowIndex
);
13066
if (e.
RowIndex
>= 0 && dataGridViewCell.MouseUpUnsharesRowInternal(e))
13068
DataGridViewRow dataGridViewRow = this.Rows[e.
RowIndex
];
13069
GetCellInternal(e.ColumnIndex, e.
RowIndex
).OnMouseUpInternal(e);
16352
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.
RowIndex
< this.Rows.Count)
16373
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.
RowIndex
< this.Rows.Count)
16383
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.
RowIndex
< this.Rows.Count)
16438
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.
RowIndex
< this.Rows.Count)
16474
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.
RowIndex
< this.Rows.Count)
16825
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.
RowIndex
< this.Rows.Count)
25562
this.lastMouseClickInfo.row = dgvcme.
RowIndex
;
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
604
if (ptCurrentCell.X == e.ColumnIndex && ptCurrentCell.Y == e.
RowIndex
&& e.Button == MouseButtons.Left)