1 write to items
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (1)
190this.items = new RowArrayList(this);
40 references to items
System.Windows.Forms (40)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (40)
69return this.items.Contains(value); 76return this.items.IndexOf(value); 140this.items.CopyTo(array, index); 198return this.items.Count; 225return this.items; 233return this.items; 263if (index == 0 && this.items.Count == 1) 739int index, indexStart = this.items.Count; 888int indexStart = this.items.Count; 957int rowCount = this.items.Count; 979this.items.Count == 0) // accessing AllowUserToAddRowsInternal can trigger a nested call to ClearInternal. Rows count needs to be checked again. 991return this.items.IndexOf(dataGridViewRow) != -1; 997this.items.CopyTo(array, index); 1058while (index < this.items.Count && !((GetRowState(index) & includeFilter) == includeFilter)) 1062return (index < this.items.Count) ? index : -1; 1109while (index < this.items.Count && (!((GetRowState(index) & includeFilter) == includeFilter) || !((GetRowState(index) & excludeFilter) == 0))) 1113return (index < this.items.Count) ? index : -1; 1149int index = this.items.Count - 1; 1186while (index < this.items.Count && !((GetRowState(index) & includeFilter) == includeFilter)) 1190return (index < this.items.Count) ? index : -1; 1218while (index < this.items.Count && (!((GetRowState(index) & includeFilter) == includeFilter) || !((GetRowState(index) & excludeFilter) == 0))) 1222return (index < this.items.Count) ? index : -1; 1233if (indexStart > this.items.Count) 1235throw new ArgumentOutOfRangeException("indexStart", SR.GetString(SR.InvalidHighBoundArgumentEx, "indexStart", (indexStart).ToString(CultureInfo.CurrentCulture), (this.items.Count).ToString(CultureInfo.CurrentCulture))); 1265if (indexStart > this.items.Count) 1267throw new ArgumentOutOfRangeException("indexStart", SR.GetString(SR.InvalidHighBoundArgumentEx, "indexStart", (indexStart).ToString(CultureInfo.CurrentCulture), (this.items.Count).ToString(CultureInfo.CurrentCulture))); 1314for (int rowIndex = 0; rowIndex < this.items.Count; rowIndex++) 1384for (int rowIndex = 0; rowIndex < this.items.Count; rowIndex++) 1388rowsHeight += ((DataGridViewRow)this.items[rowIndex]).GetHeight(rowIndex); 1415rowsHeight += ((DataGridViewRow)this.items[rowIndex]).GetHeight(rowIndex); 1425Debug.Assert(toRowIndex == this.items.Count || (GetRowState(toRowIndex) & includeFilter) == includeFilter); 1432rowsHeight += ((DataGridViewRow)this.items[rowIndex]).GetHeight(rowIndex); 1445if (rowIndex < 0 || rowIndex >= this.items.Count) 1464return this.items.IndexOf(dataGridViewRow); 2474if (this.items.Count > 0) 2477this.items.CustomSort(rowComparer); 2516object item = this.items[rowIndex1]; 2517this.items[rowIndex1] = this.items[rowIndex2]; 2518this.items[rowIndex2] = item;