148 references to RowIndex
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
560InvalidateRow(cell.RowIndex);
System.Windows.Forms (147)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (11)
1725if ((value is not null && (value.RowIndex != _ptCurrentCell.Y || value.ColumnIndex != _ptCurrentCell.X)) 1749if (!Columns[value.ColumnIndex].Visible || (Rows.GetRowState(value.RowIndex) & DataGridViewElementStates.Visible) == 0) 1754if (!ScrollIntoView(value.ColumnIndex, value.RowIndex, true)) 1759if (IsInnerCellOutOfBounds(value.ColumnIndex, value.RowIndex)) 1764ClearSelection(value.ColumnIndex, value.RowIndex, selectExceptionElement: true); 1767value.RowIndex, 2308if (firstDisplayedCell.RowIndex == -1 || firstDisplayedCell.ColumnIndex == -1) 2313Debug.Assert(firstDisplayedCell.RowIndex >= 0 2314&& firstDisplayedCell.RowIndex < Rows.Count 2325if (!Rows[firstDisplayedCell.RowIndex].Frozen) 2327FirstDisplayedScrollingRowIndex = firstDisplayedCell.RowIndex;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (29)
6945if (GetCellCount_CellIncluded(dataGridViewCell, dataGridViewCell.RowIndex, displayedRequired, frozenRequired, resizableRequired, readOnlyRequired, visibleRequired)) 7926if (dataGridViewCell.RowIndex < lRowIndex) 7928lRowIndex = dataGridViewCell.RowIndex; 7931if (dataGridViewCell.RowIndex > uRowIndex) 7933uRowIndex = dataGridViewCell.RowIndex; 9832InvalidateCell(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex); 11815Debug.Assert(dataGridViewCell.RowIndex >= -1); 12870Debug.Assert(dataGridViewCell.RowIndex >= 0); 12881&& _ptCurrentCell.Y == dataGridViewCell.RowIndex 12882&& dataGridViewCell.RowIndex > -1 14627ActivateToolTip(activate: false, toolTipText: string.Empty, CurrentCell.ColumnIndex, CurrentCell.RowIndex); 14903&& _ptCurrentCell.Y == dataGridViewCell.RowIndex 14909Debug.Assert(!Rows[dataGridViewCell.RowIndex].ReadOnly); 15263ActivateToolTip(activate: false, toolTipText: string.Empty, CurrentCell.ColumnIndex, CurrentCell.RowIndex); 22118ActivateToolTip(activate: false, toolTipText: string.Empty, dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex); 25433if (dataGridViewCurrentCell.RowIndex == -1) 25458if (dataGridViewCurrentCell.RowIndex == -1) 25715SetReadOnlyCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 25730if (dataGridViewCell.RowIndex == rowIndex) 25756SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 25783if (dataGridViewCell.ColumnIndex != columnIndexException || dataGridViewCell.RowIndex != rowIndexException) 25785SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 25792Debug.Assert(dataGridViewCell.ColumnIndex != columnIndexException || dataGridViewCell.RowIndex != rowIndexException); 25793SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 25822SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 25846SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 25870if (dataGridViewCell.RowIndex == rowIndex) 25872SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 27484if (dataGridViewCell.ColumnIndex != columnIndex || dataGridViewCell.RowIndex != rowIndex)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
502Debug.Assert(RowIndex >= 0); // Cell is not in a shared row. 1008$"DataGridViewButtonCell {{ ColumnIndex={ColumnIndex}, RowIndex={RowIndex} }}";
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject.cs (3)
33if (dataGridViewCell.RowIndex == -1) 46dataGridView.OnCellClickInternal(new DataGridViewCellEventArgs(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex)); 47dataGridView.OnCellContentClickInternal(new DataGridViewCellEventArgs(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (56)
105public Rectangle ContentBounds => GetContentBounds(RowIndex); 110get => GetContextMenuStrip(RowIndex); 153if (RowIndex >= 0 && ColumnIndex >= 0) 155Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 174Debug.Assert(RowIndex >= -1); 175DataGridViewCellStyle dataGridViewCellStyle = GetInheritedStyle(inheritedCellStyle: null, RowIndex, includeColors: false); 176return GetEditedFormattedValue(GetValue(RowIndex), RowIndex, ref dataGridViewCellStyle, DataGridViewDataErrorContexts.Formatting); 187public Rectangle ErrorIconBounds => GetErrorIconBounds(RowIndex); 193get => GetErrorText(RowIndex); 220Debug.Assert(RowIndex >= -1); 221DataGridViewCellStyle dataGridViewCellStyle = GetInheritedStyle(inheritedCellStyle: null, RowIndex, includeColors: false); 222return GetFormattedValue(RowIndex, ref dataGridViewCellStyle, DataGridViewDataErrorContexts.Formatting); 255if (DataGridView is not null && RowIndex >= 0 && ColumnIndex >= 0) 257Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 260else if (OwningRow is not null && (OwningRow.DataGridView is null || RowIndex >= 0)) 303for (int i = RowIndex - 1; i <= RowIndex + 1; i++) 361public DataGridViewElementStates InheritedState => GetInheritedState(RowIndex); 371return GetInheritedStyleInternal(RowIndex); 392if (RowIndex == -1) 400ptCurrentCell.Y == RowIndex && 414public Size PreferredSize => GetPreferredSize(RowIndex); 429if (OwningRow is not null && (OwningRow.DataGridView is null || RowIndex >= 0) && OwningRow.ReadOnly) 434if (DataGridView is not null && RowIndex >= 0 && ColumnIndex >= 0) 436Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 446if (RowIndex == -1) 456DataGridView.SetReadOnlyCellCore(ColumnIndex, RowIndex, value); // this may trigger a call to set_ReadOnlyInternal 499if (OwningRow is not null && (OwningRow.DataGridView is null || RowIndex >= 0) && OwningRow.Resizable == DataGridViewTriState.True) 504if (DataGridView is not null && RowIndex >= 0 && ColumnIndex >= 0) 506Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 531if (OwningRow is not null && (OwningRow.DataGridView is null || RowIndex >= 0) && OwningRow.Selected) 536if (DataGridView is not null && RowIndex >= 0 && ColumnIndex >= 0) 538Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 548if (RowIndex == -1) 554DataGridView.SetSelectedCellCoreInternal(ColumnIndex, RowIndex, value); // this may trigger a call to set_SelectedInternal 583public Size Size => GetSize(RowIndex); 659get => GetToolTipText(RowIndex) ?? string.Empty; 685Debug.Assert(RowIndex >= -1); 686return GetValue(RowIndex); 690Debug.Assert(RowIndex >= -1); 691SetValue(RowIndex, value); 741if (DataGridView is not null && RowIndex >= 0 && ColumnIndex >= 0) 743Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 746else if (OwningRow is not null && (OwningRow.DataGridView is null || RowIndex >= 0)) 1779Debug.Assert(RowIndex == -1); 2382if (ColumnIndex < 0 || RowIndex < 0) 2834if (RowIndex == -1) 2842DataGridView.OnCellCommonChange(ColumnIndex, RowIndex); 3970return $"DataGridViewCell {{ ColumnIndex={ColumnIndex}, RowIndex={RowIndex} }}";
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (2)
274if (dataGridViewCell.RowIndex == -1) 706&& _owner?.ColumnIndex != -1 && _owner?.RowIndex != -1)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCancelEventArgs.cs (1)
11: this(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellEventArgs.cs (1)
9: this(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellLinkedList.cs (1)
162(!column && removeTarget.DataGridViewCell.RowIndex == bandIndex))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (6)
215if (RowIndex != -1) 270if (RowIndex != -1) 298if (RowIndex != -1) 370if (RowIndex != -1) 855Debug.Assert(RowIndex >= 0); // Cell is not in a shared row. 1701$"DataGridViewCheckBoxCell {{ ColumnIndex={ColumnIndex}, RowIndex={RowIndex} }}";
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (3)
89if (dataGridViewCell.RowIndex == -1) 115dataGridView.InvalidateCell(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex); 119checkBoxCell.NotifyMSAAClient(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (12)
108if (OwnsEditingComboBox(RowIndex)) 183if (OwnsEditingComboBox(RowIndex)) 203if (OwnsEditingComboBox(RowIndex)) 245if (RowIndex != -1) 275if (RowIndex != -1) 327if (OwnsEditingComboBox(RowIndex)) 390if (OwnsEditingComboBox(RowIndex)) 438if (OwnsEditingComboBox(RowIndex)) 459if (OwnsEditingComboBox(RowIndex)) 1590item = ItemFromComboBoxItems(RowIndex, string.IsNullOrEmpty(DisplayMember) ? ValueMember : DisplayMember, formattedValue); 1638if (OwnsEditingComboBox(RowIndex)) 2438public override string ToString() => $"DataGridViewComboBoxCell {{ ColumnIndex={ColumnIndex}, RowIndex={RowIndex} }}";
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
559=> $"DataGridViewHeaderCell {{ ColumnIndex={ColumnIndex}, RowIndex={RowIndex} }}";
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (4)
131if (RowIndex != -1) 160RowIndex != -1 && 161DataGridView.NewRowIndex == RowIndex && 908public override string ToString() => $"DataGridViewImageCell {{ ColumnIndex={ColumnIndex}, RowIndex={RowIndex} }}";
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.DataGridViewImageCellAccessibleObject.cs (2)
47dataGridViewCell.RowIndex != -1 && 51dataGridView.OnCellContentClickInternal(new DataGridViewCellEventArgs(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (7)
72if (RowIndex != -1) 130if (RowIndex != -1) 184if (RowIndex != -1) 232if (RowIndex != -1) 260if (RowIndex != -1) 328if (RowIndex != -1) 1128$"DataGridViewLinkCell {{ ColumnIndex={ColumnIndex}, RowIndex={RowIndex} }}";
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject.cs (2)
31if (dataGridViewCell.RowIndex == -1) 44dataGridView.OnCellContentClickInternal(new DataGridViewCellEventArgs(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
315dataGridView.CurrentCell.RowIndex == _owningDataGridViewRow.Index)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
1073$"DataGridViewRowHeaderCell {{ RowIndex={RowIndex} }}";
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (2)
73if (OwnsEditingTextBox(RowIndex)) 805=> $"DataGridViewTextBoxCell {{ ColumnIndex={ColumnIndex}, RowIndex={RowIndex} }}";