1 write to _index
System.Data.Common (1)
System\Data\DataView.cs (1)
1611_index = newIndex;
34 references to _index
System.Data.Common (34)
System\Data\DataView.cs (34)
280private int CountFromIndex => ((null != _index) ? _index.RecordCount : 0) + ((null != _addNewRow) ? 1 : 0); 637if (null != _index) 639RBTree<int>.RBTreeEnumerator iterator = _index.GetEnumerator(0); 657if (null != _index) 659RBTree<int>.RBTreeEnumerator iterator = _index.GetEnumerator(0); 722internal virtual int FindByKey(object? key) => _index!.FindRecordByKey(key); 731internal virtual int FindByKey(object?[] key) => _index!.FindRecordByKey(key); 750Range range = _index!.FindRecords(key); 763return _index!.FindRecords(comparison, key); 868if ((null != _index) && (DataRowState.Detached != rowview.Row.RowState)) 885return _index!.GetIndex(rowview.Row.GetRecordFromVersion(rowview.Row.GetDefaultRowVersion(RowStateFilter) & ~DataRowVersion.Proposed)); 955if (_table != null && _index != null && _index._indexFields.Length == 1) 957return new DataColumnPropertyDescriptor(_index._indexFields[0].Column); 962ListSortDirection IBindingList.SortDirection => (_index!._indexFields.Length == 1 && _index._indexFields[0].IsDescending) ? 1019return _index!.GetIndex(findIndex.GetRecord(recordRange.Min)); 1126if (_table != null && _index != null && _index._indexFields.Length > 0) 1128sortDescArray = new ListSortDescription[_index._indexFields.Length]; 1129for (int i = 0; i < _index._indexFields.Length; i++) 1131DataColumnPropertyDescriptor columnProperty = new DataColumnPropertyDescriptor(_index._indexFields[i].Column); 1132if (_index._indexFields[i].IsDescending) 1218return recordIndex == _index!.RecordCount ? 1220_index.GetRecord(recordIndex); 1251if (_addNewRow != null && _index!.RecordCount == 0) 1445_index!.Reset(); 1454if (null != _index) 1457RBTree<int>.RBTreeEnumerator iterator = _index.GetEnumerator(0); 1601if (_index == newIndex) 1606if (_index != null) 1613if (_index != null) 1615_dvListener.RegisterListChangedEvent(_index);