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