161 references to RowIndex
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
560InvalidateRow(cell.RowIndex);
System.Windows.Forms (149)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (11)
1720if ((value is not null && (value.RowIndex != _ptCurrentCell.Y || value.ColumnIndex != _ptCurrentCell.X)) 1744if (!Columns[value.ColumnIndex].Visible || (Rows.GetRowState(value.RowIndex) & DataGridViewElementStates.Visible) == 0) 1749if (!ScrollIntoView(value.ColumnIndex, value.RowIndex, true)) 1754if (IsInnerCellOutOfBounds(value.ColumnIndex, value.RowIndex)) 1759ClearSelection(value.ColumnIndex, value.RowIndex, selectExceptionElement: true); 1762value.RowIndex, 2303if (firstDisplayedCell.RowIndex == -1 || firstDisplayedCell.ColumnIndex == -1) 2308Debug.Assert(firstDisplayedCell.RowIndex >= 0 2309&& firstDisplayedCell.RowIndex < Rows.Count 2320if (!Rows[firstDisplayedCell.RowIndex].Frozen) 2322FirstDisplayedScrollingRowIndex = firstDisplayedCell.RowIndex;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (31)
6886if (GetCellCount_CellIncluded(dataGridViewCell, dataGridViewCell.RowIndex, displayedRequired, frozenRequired, resizableRequired, readOnlyRequired, visibleRequired)) 7867if (dataGridViewCell.RowIndex < lRowIndex) 7869lRowIndex = dataGridViewCell.RowIndex; 7872if (dataGridViewCell.RowIndex > uRowIndex) 7874uRowIndex = dataGridViewCell.RowIndex; 9773InvalidateCell(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex); 11756Debug.Assert(dataGridViewCell.RowIndex >= -1); 12811Debug.Assert(dataGridViewCell.RowIndex >= 0); 12822&& _ptCurrentCell.Y == dataGridViewCell.RowIndex 12823&& dataGridViewCell.RowIndex > -1 14568ActivateToolTip(activate: false, toolTipText: string.Empty, CurrentCell.ColumnIndex, CurrentCell.RowIndex); 14844&& _ptCurrentCell.Y == dataGridViewCell.RowIndex 14850Debug.Assert(!Rows[dataGridViewCell.RowIndex].ReadOnly); 15204ActivateToolTip(activate: false, toolTipText: string.Empty, CurrentCell.ColumnIndex, CurrentCell.RowIndex); 19801Debug.Assert(dataGridViewCell.RowIndex == _ptCurrentCell.Y || dataGridViewCell.RowIndex == -1); 22045ActivateToolTip(activate: false, toolTipText: string.Empty, dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex); 25360if (dataGridViewCurrentCell.RowIndex == -1) 25385if (dataGridViewCurrentCell.RowIndex == -1) 25642SetReadOnlyCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 25657if (dataGridViewCell.RowIndex == rowIndex) 25683SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 25710if (dataGridViewCell.ColumnIndex != columnIndexException || dataGridViewCell.RowIndex != rowIndexException) 25712SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 25719Debug.Assert(dataGridViewCell.ColumnIndex != columnIndexException || dataGridViewCell.RowIndex != rowIndexException); 25720SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 25749SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 25773SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 25797if (dataGridViewCell.RowIndex == rowIndex) 25799SetSelectedCellCore(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex, false); 27411if (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); 161if (RowIndex >= 0 && ColumnIndex >= 0) 163Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 182Debug.Assert(RowIndex >= -1); 183DataGridViewCellStyle dataGridViewCellStyle = GetInheritedStyle(inheritedCellStyle: null, RowIndex, includeColors: false); 184return GetEditedFormattedValue(GetValue(RowIndex), RowIndex, ref dataGridViewCellStyle, DataGridViewDataErrorContexts.Formatting); 195public Rectangle ErrorIconBounds => GetErrorIconBounds(RowIndex); 201get => GetErrorText(RowIndex); 228Debug.Assert(RowIndex >= -1); 229DataGridViewCellStyle dataGridViewCellStyle = GetInheritedStyle(inheritedCellStyle: null, RowIndex, includeColors: false); 230return GetFormattedValue(RowIndex, ref dataGridViewCellStyle, DataGridViewDataErrorContexts.Formatting); 263if (DataGridView is not null && RowIndex >= 0 && ColumnIndex >= 0) 265Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 268else if (OwningRow is not null && (OwningRow.DataGridView is null || RowIndex >= 0)) 311for (int i = RowIndex - 1; i <= RowIndex + 1; i++) 369public DataGridViewElementStates InheritedState => GetInheritedState(RowIndex); 379return GetInheritedStyleInternal(RowIndex); 400if (RowIndex == -1) 408ptCurrentCell.Y == RowIndex && 422public Size PreferredSize => GetPreferredSize(RowIndex); 437if (OwningRow is not null && (OwningRow.DataGridView is null || RowIndex >= 0) && OwningRow.ReadOnly) 442if (DataGridView is not null && RowIndex >= 0 && ColumnIndex >= 0) 444Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 454if (RowIndex == -1) 464DataGridView.SetReadOnlyCellCore(ColumnIndex, RowIndex, value); // this may trigger a call to set_ReadOnlyInternal 507if (OwningRow is not null && (OwningRow.DataGridView is null || RowIndex >= 0) && OwningRow.Resizable == DataGridViewTriState.True) 512if (DataGridView is not null && RowIndex >= 0 && ColumnIndex >= 0) 514Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 539if (OwningRow is not null && (OwningRow.DataGridView is null || RowIndex >= 0) && OwningRow.Selected) 544if (DataGridView is not null && RowIndex >= 0 && ColumnIndex >= 0) 546Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 556if (RowIndex == -1) 562DataGridView.SetSelectedCellCoreInternal(ColumnIndex, RowIndex, value); // this may trigger a call to set_SelectedInternal 591public Size Size => GetSize(RowIndex); 667get => GetToolTipText(RowIndex) ?? string.Empty; 693Debug.Assert(RowIndex >= -1); 694return GetValue(RowIndex); 698Debug.Assert(RowIndex >= -1); 699SetValue(RowIndex, value); 749if (DataGridView is not null && RowIndex >= 0 && ColumnIndex >= 0) 751Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 754else if (OwningRow is not null && (OwningRow.DataGridView is null || RowIndex >= 0)) 1778Debug.Assert(RowIndex == -1); 2381if (ColumnIndex < 0 || RowIndex < 0) 2833if (RowIndex == -1) 2841DataGridView.OnCellCommonChange(ColumnIndex, RowIndex); 3969return $"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. 1700$"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)
68if (RowIndex != -1) 126if (RowIndex != -1) 176if (RowIndex != -1) 224if (RowIndex != -1) 252if (RowIndex != -1) 316if (RowIndex != -1) 1088$"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} }}";
System.Windows.Forms.Tests (11)
System\Windows\Forms\AccessibleObjects\DataGridViewButtonCellAccessibleObjectTests.cs (1)
68Assert.Equal(-1, cell.RowIndex);
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (1)
204Assert.Equal(-1, cell.RowIndex);
System\Windows\Forms\AccessibleObjects\DataGridViewLinkCellAccessibleObjectTests.cs (1)
67Assert.Equal(-1, cell.RowIndex);
System\Windows\Forms\DataGridViewCellTests.cs (3)
42Assert.Equal(-1, cell.RowIndex); 3335Assert.Equal(-1, cell.RowIndex); 3374Assert.Equal(-1, cell.RowIndex);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (5)
40Assert.Equal(-1, cell.RowIndex); 2037Assert.Equal(-1, cell.RowIndex); 2076Assert.Equal(-1, cell.RowIndex); 2123Assert.Equal(-1, cell.RowIndex); 2162Assert.Equal(-1, cell.RowIndex);