141 references to RowIndex
System.Windows.Forms (141)
winforms\Managed\System\WinForms\DataGridView.cs (11)
2192
if ((value != null && (value.
RowIndex
!= this.ptCurrentCell.Y || value.ColumnIndex != this.ptCurrentCell.X)) ||
2211
(this.Rows.GetRowState(value.
RowIndex
) & DataGridViewElementStates.Visible) == 0)
2215
if (!ScrollIntoView(value.ColumnIndex, value.
RowIndex
, true))
2219
if (IsInnerCellOutOfBounds(value.ColumnIndex, value.
RowIndex
))
2223
ClearSelection(value.ColumnIndex, value.
RowIndex
, true /*selectExceptionElement*/);
2224
if (!SetCurrentCellAddressCore(value.ColumnIndex, value.
RowIndex
, true, false, false))
2922
if (firstDisplayedCell.
RowIndex
== -1 || firstDisplayedCell.ColumnIndex == -1)
2927
Debug.Assert(firstDisplayedCell.
RowIndex
>= 0 &&
2928
firstDisplayedCell.
RowIndex
< this.Rows.Count &&
2939
if (!this.Rows[firstDisplayedCell.
RowIndex
].Frozen)
2941
this.FirstDisplayedScrollingRowIndex = firstDisplayedCell.
RowIndex
;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (5)
553
Debug.Assert(this.
RowIndex
>= 0); // Cell is not in a shared row.
1063
return "DataGridViewButtonCell { ColumnIndex=" + ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" +
RowIndex
.ToString(CultureInfo.CurrentCulture) + " }";
1126
if (dataGridView != null && dataGridViewCell.
RowIndex
== -1)
1133
dataGridView.OnCellClickInternal(new DataGridViewCellEventArgs(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
));
1134
dataGridView.OnCellContentClickInternal(new DataGridViewCellEventArgs(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
));
winforms\Managed\System\WinForms\DataGridViewCell.cs (55)
144
return GetContentBounds(this.
RowIndex
);
156
return GetContextMenuStrip(this.
RowIndex
);
234
if (this.DataGridView != null && this.
RowIndex
>= 0 && this.ColumnIndex >= 0)
236
Debug.Assert(this.DataGridView.Rows.GetRowState(this.
RowIndex
) == this.DataGridView.Rows.SharedRow(this.
RowIndex
).State);
257
Debug.Assert(this.
RowIndex
>= -1);
258
DataGridViewCellStyle dataGridViewCellStyle = GetInheritedStyle(null, this.
RowIndex
, false);
259
return GetEditedFormattedValue(GetValue(this.
RowIndex
), this.
RowIndex
, ref dataGridViewCellStyle, DataGridViewDataErrorContexts.Formatting);
298
return GetErrorIconBounds(this.
RowIndex
);
310
return GetErrorText(this.
RowIndex
);
351
Debug.Assert(this.
RowIndex
>= -1);
352
DataGridViewCellStyle dataGridViewCellStyle = GetInheritedStyle(null, this.
RowIndex
, false);
353
return GetFormattedValue(this.
RowIndex
, ref dataGridViewCellStyle, DataGridViewDataErrorContexts.Formatting);
399
if (this.DataGridView != null && this.
RowIndex
>= 0 && this.ColumnIndex >= 0)
401
Debug.Assert(this.DataGridView.Rows.GetRowState(this.
RowIndex
) == this.DataGridView.Rows.SharedRow(this.
RowIndex
).State);
404
else if (this.owningRow != null && (this.owningRow.DataGridView == null || this.
RowIndex
>= 0))
465
return GetInheritedState(this.
RowIndex
);
481
return GetInheritedStyleInternal(this.
RowIndex
);
497
if (this.
RowIndex
== -1)
504
ptCurrentCell.Y == this.
RowIndex
&&
559
return GetPreferredSize(this.
RowIndex
);
584
if (this.owningRow != null && (this.owningRow.DataGridView == null || this.
RowIndex
>= 0) && this.owningRow.ReadOnly)
588
if (this.DataGridView != null && this.
RowIndex
>= 0 && this.ColumnIndex >= 0)
590
Debug.Assert(this.DataGridView.Rows.GetRowState(this.
RowIndex
) == this.DataGridView.Rows.SharedRow(this.
RowIndex
).State);
599
if (this.
RowIndex
== -1)
608
this.DataGridView.SetReadOnlyCellCore(this.ColumnIndex, this.
RowIndex
, value); // this may trigger a call to set_ReadOnlyInternal
659
if (this.owningRow != null && (this.owningRow.DataGridView == null || this.
RowIndex
>= 0) && this.owningRow.Resizable == DataGridViewTriState.True)
664
if (this.DataGridView != null && this.
RowIndex
>= 0 && this.ColumnIndex >= 0)
666
Debug.Assert(this.DataGridView.Rows.GetRowState(this.
RowIndex
) == this.DataGridView.Rows.SharedRow(this.
RowIndex
).State);
707
if (this.owningRow != null && (this.owningRow.DataGridView == null || this.
RowIndex
>= 0) && this.owningRow.Selected)
712
if (this.DataGridView != null && this.
RowIndex
>= 0 && this.ColumnIndex >= 0)
714
Debug.Assert(this.DataGridView.Rows.GetRowState(this.
RowIndex
) == this.DataGridView.Rows.SharedRow(this.
RowIndex
).State);
724
if (this.
RowIndex
== -1)
729
this.DataGridView.SetSelectedCellCoreInternal(this.ColumnIndex, this.
RowIndex
, value); // this may trigger a call to set_SelectedInternal
768
return GetSize(this.
RowIndex
);
869
return GetToolTipText(this.
RowIndex
);
906
Debug.Assert(this.
RowIndex
>= -1);
907
return GetValue(this.
RowIndex
);
911
Debug.Assert(this.
RowIndex
>= -1);
912
SetValue(this.
RowIndex
, value);
975
if (this.DataGridView != null && this.
RowIndex
>= 0 && this.ColumnIndex >= 0)
977
Debug.Assert(this.DataGridView.Rows.GetRowState(this.
RowIndex
) == this.DataGridView.Rows.SharedRow(this.
RowIndex
).State);
980
else if (this.owningRow != null && (this.owningRow.DataGridView == null || this.
RowIndex
>= 0))
2069
Debug.Assert(this.
RowIndex
== -1);
3233
if (this.
RowIndex
== -1)
3241
this.DataGridView.OnCellCommonChange(this.ColumnIndex, this.
RowIndex
);
4712
return "DataGridViewCell { ColumnIndex=" + this.ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" + this.
RowIndex
.ToString(CultureInfo.CurrentCulture) + " }";
5046
if (dataGridView != null && dataGridViewCell.
RowIndex
== -1)
5580
this.owner.ColumnIndex != -1 && this.owner.
RowIndex
!= -1)
winforms\Managed\System\WinForms\DataGridViewCellCancelEventArgs.cs (1)
19
internal DataGridViewCellCancelEventArgs(DataGridViewCell dataGridViewCell) : this(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
)
winforms\Managed\System\WinForms\DataGridViewCellEventArgs.cs (1)
18
internal DataGridViewCellEventArgs(DataGridViewCell dataGridViewCell) : this(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
)
winforms\Managed\System\WinForms\DataGridViewCellLinkedList.cs (1)
193
(!column && tmp2.DataGridViewCell.
RowIndex
== bandIndex))
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (9)
250
if (this.
RowIndex
!= -1)
346
if (this.
RowIndex
!= -1)
385
if (this.
RowIndex
!= -1)
431
if (this.
RowIndex
!= -1)
985
Debug.Assert(this.
RowIndex
>= 0); // Cell is not in a shared row.
1764
return "DataGridViewCheckBoxCell { ColumnIndex=" + this.ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" + this.
RowIndex
.ToString(CultureInfo.CurrentCulture) + " }";
1883
if (dataGridView != null && dataGridViewCell.
RowIndex
== -1)
1902
dataGridView.InvalidateCell(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
);
1908
checkBoxCell.NotifyMASSClient(new Point(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
));
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (12)
137
if (OwnsEditingComboBox(this.
RowIndex
))
233
if (OwnsEditingComboBox(this.
RowIndex
))
266
if (OwnsEditingComboBox(this.
RowIndex
))
331
if (this.
RowIndex
!= -1)
377
if (this.
RowIndex
!= -1)
453
if (OwnsEditingComboBox(this.
RowIndex
))
574
if (OwnsEditingComboBox(this.
RowIndex
))
627
if (OwnsEditingComboBox(this.
RowIndex
))
667
if (OwnsEditingComboBox(this.
RowIndex
))
1837
item = ItemFromComboBoxItems(this.
RowIndex
, string.IsNullOrEmpty(this.DisplayMember) ? this.ValueMember : this.DisplayMember, formattedValue);
1883
if (OwnsEditingComboBox(this.
RowIndex
))
2710
return "DataGridViewComboBoxCell { ColumnIndex=" + this.ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" + this.
RowIndex
.ToString(CultureInfo.CurrentCulture) + " }";
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
672
return "DataGridViewHeaderCell { ColumnIndex=" + this.ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" + this.
RowIndex
.ToString(CultureInfo.CurrentCulture) + " }";
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (6)
205
if (this.
RowIndex
!= -1)
233
this.
RowIndex
!= -1 &&
234
this.DataGridView.NewRowIndex == this.
RowIndex
&&
983
return "DataGridViewImageCell { ColumnIndex=" + ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" +
RowIndex
.ToString(CultureInfo.CurrentCulture) + " }";
1048
if (dataGridView != null && dataGridViewCell.
RowIndex
!= -1 &&
1051
dataGridView.OnCellContentClickInternal(new DataGridViewCellEventArgs(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
));
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (9)
84
if (this.
RowIndex
!= -1)
163
if (this.
RowIndex
!= -1)
217
if (this.
RowIndex
!= -1)
293
if (this.
RowIndex
!= -1)
332
if (this.
RowIndex
!= -1)
421
if (this.
RowIndex
!= -1)
1169
return "DataGridViewLinkCell { ColumnIndex=" + ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" +
RowIndex
.ToString(CultureInfo.CurrentCulture) + " }";
1197
if (dataGridView != null && dataGridViewCell.
RowIndex
== -1)
1204
dataGridView.OnCellContentClickInternal(new DataGridViewCellEventArgs(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
));
winforms\Managed\System\WinForms\DataGridViewMethods.cs (26)
6955
if (GetCellCount_CellIncluded(dataGridViewCell, dataGridViewCell.
RowIndex
, displayedRequired, frozenRequired, resizableRequired, readOnlyRequired, visibleRequired))
7956
if (dataGridViewCell.
RowIndex
< lRowIndex)
7958
lRowIndex = dataGridViewCell.
RowIndex
;
7960
if (dataGridViewCell.
RowIndex
> uRowIndex)
7962
uRowIndex = dataGridViewCell.
RowIndex
;
9949
InvalidateCell(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
);
12059
Debug.Assert(dataGridViewCell.
RowIndex
>= -1);
13171
Debug.Assert(dataGridViewCell.
RowIndex
>= 0);
13186
this.ptCurrentCell.Y == dataGridViewCell.
RowIndex
&&
13187
dataGridViewCell.
RowIndex
> -1 &&
15325
this.ptCurrentCell.Y == dataGridViewCell.
RowIndex
&&
15331
Debug.Assert(!this.Rows[dataGridViewCell.
RowIndex
].ReadOnly);
25526
if (dataGridViewCurrentCell.
RowIndex
== -1)
25547
if (dataGridViewCurrentCell.
RowIndex
== -1)
25765
SetReadOnlyCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
, false);
25780
if (dataGridViewCell.
RowIndex
== rowIndex)
25805
SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
, false);
25831
if (dataGridViewCell.ColumnIndex != columnIndexException || dataGridViewCell.
RowIndex
!= rowIndexException)
25833
SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
, false);
25840
Debug.Assert(dataGridViewCell.ColumnIndex != columnIndexException || dataGridViewCell.
RowIndex
!= rowIndexException);
25841
SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
, false);
25869
SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
, false);
25893
SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
, false);
25917
if (dataGridViewCell.
RowIndex
== rowIndex)
25919
SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.
RowIndex
, false);
27434
if (dataGridViewCell.ColumnIndex != columnIndex || dataGridViewCell.
RowIndex
!= rowIndex)
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
2219
if (this.owner.DataGridView.Focused && this.owner.DataGridView.CurrentCell != null && this.owner.DataGridView.CurrentCell.
RowIndex
== this.owner.Index)
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
1168
return "DataGridViewRowHeaderCell { RowIndex=" +
RowIndex
.ToString(CultureInfo.CurrentCulture) + " }";
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (2)
120
if (OwnsEditingTextBox(this.
RowIndex
))
831
return "DataGridViewTextBoxCell { ColumnIndex=" + ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" +
RowIndex
.ToString(CultureInfo.CurrentCulture) + " }";