147 references to DataViewRowState
System.Data (144)
fx\src\data\System\Data\Common\DBSchemaRow.cs (4)
34
const
DataViewRowState
rowStates =
DataViewRowState
.Unchanged |
DataViewRowState
.Added |
DataViewRowState
.ModifiedCurrent;
fx\src\data\System\Data\DataColumn.cs (1)
1095
sortIndex = table.GetIndex(indexDesc,
DataViewRowState
.CurrentRows, (IFilter)null);
fx\src\data\System\Data\DataKey.cs (2)
202
return GetSortIndex(
DataViewRowState
.CurrentRows);
205
internal Index GetSortIndex(
DataViewRowState
recordStates) {
fx\src\data\System\Data\DataRelation.cs (6)
250
Index index = childKey.GetSortIndex((version == DataRowVersion.Original) ?
DataViewRowState
.OriginalRows :
DataViewRowState
.CurrentRows);
263
Index index = parentKey.GetSortIndex((version == DataRowVersion.Original) ?
DataViewRowState
.OriginalRows :
DataViewRowState
.CurrentRows);
277
Index index = parentKey.GetSortIndex((version == DataRowVersion.Original) ?
DataViewRowState
.OriginalRows :
DataViewRowState
.CurrentRows);
fx\src\data\System\Data\DataRow.cs (14)
944
internal DataRowVersion GetDefaultRowVersion(
DataViewRowState
viewState) {
950
Debug.Assert(0 != (
DataViewRowState
.Unchanged & viewState), "not DataViewRowState.Unchanged");
954
Debug.Assert(0 != (
DataViewRowState
.Added & viewState), "not DataViewRowState.Added");
958
Debug.Assert(_action==DataRowAction.Rollback || 0 != (
DataViewRowState
.Deleted & viewState), "not DataViewRowState.Deleted");
961
else if (0 != (
DataViewRowState
.ModifiedCurrent & viewState)) {
964
Debug.Assert(0 != (
DataViewRowState
.ModifiedOriginal & viewState), "not DataViewRowState.ModifiedOriginal");
968
internal
DataViewRowState
GetRecordState(int record) {
970
return
DataViewRowState
.None;
972
return
DataViewRowState
.Unchanged;
974
return(newRecord != -1) ?
DataViewRowState
.ModifiedOriginal :
DataViewRowState
.Deleted;
976
return(oldRecord != -1) ?
DataViewRowState
.ModifiedCurrent :
DataViewRowState
.Added;
977
return
DataViewRowState
.None;
fx\src\data\System\Data\DataRowView.cs (1)
186
childView.SetIndex("",
DataViewRowState
.CurrentRows, null); // finish construction via RelatedView.SetIndex
fx\src\data\System\Data\DataTable.cs (41)
1162
view.SetIndex2("",
DataViewRowState
.CurrentRows, null, true);
2731
DataRow[] rows = Select(filter, "",
DataViewRowState
.CurrentRows);
2901
return GetIndex(indexDesc,
DataViewRowState
.CurrentRows, (IFilter)null);
2904
internal Index GetIndex(string sort,
DataViewRowState
recordStates, IFilter rowFilter) {
2908
internal Index GetIndex(IndexField[] indexDesc,
DataViewRowState
recordStates, IFilter rowFilter) {
3047
RecordStateChanged(row.oldRecord,
DataViewRowState
.None,
DataViewRowState
.Unchanged);
3050
RecordStateChanged(row.oldRecord,
DataViewRowState
.None, row.GetRecordState(row.oldRecord),
3051
row.newRecord,
DataViewRowState
.None, row.GetRecordState(row.newRecord));
3451
internal void RecordStateChanged(int record,
DataViewRowState
oldState,
DataViewRowState
newState) {
3469
internal void RecordStateChanged(int record1,
DataViewRowState
oldState1,
DataViewRowState
newState1,
3470
int record2,
DataViewRowState
oldState2,
DataViewRowState
newState2) {
3502
DataViewRowState
states = row.GetRecordState(recordNo);
3505
if (row.HasVersion(version) && ((states & indexes[indexCount].RecordStates) !=
DataViewRowState
.None)) {
3530
DataViewRowState
states = row.GetRecordState(recordNo);
3534
if ((states & indexes[indexCount].RecordStates) !=
DataViewRowState
.None) {
3611
DataViewRowState
oldRecordStatePre = row.GetRecordState(oldRecord);
3612
DataViewRowState
newRecordStatePre = row.GetRecordState(newRecord);
3621
RecordStateChanged(oldRecord, oldRecordStatePre,
DataViewRowState
.None,
3622
newRecord, newRecordStatePre,
DataViewRowState
.None);
3796
return new Select(this, "", "",
DataViewRowState
.CurrentRows).SelectRows();
3805
return new Select(this, filterExpression, "",
DataViewRowState
.CurrentRows).SelectRows();
3814
return new Select(this, filterExpression, sort,
DataViewRowState
.CurrentRows).SelectRows();
3821
public DataRow[] Select(string filterExpression, string sort,
DataViewRowState
recordStates) {
3954
DataViewRowState
currentRecordStatePre = row.GetRecordState(currentRecord);
3955
DataViewRowState
secondRecordStatePre = row.GetRecordState(secondRecord);
3961
DataViewRowState
currentRecordStatePost = row.GetRecordState(currentRecord);
3962
DataViewRowState
secondRecordStatePost = row.GetRecordState(secondRecord);
4055
DataViewRowState
originalRecordStatePre = row.GetRecordState(originalRecord);
4056
DataViewRowState
proposedRecordStatePre = row.GetRecordState(proposedRecord);
4062
DataViewRowState
originalRecordStatePost = row.GetRecordState(originalRecord);
4063
DataViewRowState
proposedRecordStatePost = row.GetRecordState(proposedRecord);
4146
loadIndex = primaryKey.Key.GetSortIndex(
DataViewRowState
.OriginalRows);
4264
loadIndexwithCurrentDeleted = this.primaryKey.Key.GetSortIndex(
DataViewRowState
.CurrentRows |
DataViewRowState
.Deleted);
4274
loadIndexwithOriginalAdded = this.primaryKey.Key.GetSortIndex(
DataViewRowState
.OriginalRows |
DataViewRowState
.Added);
4302
index = this.primaryKey.Key.GetSortIndex(
DataViewRowState
.OriginalRows);
fx\src\data\System\Data\DataView.cs (32)
48
private
DataViewRowState
recordStates =
DataViewRowState
.CurrentRows;
67
private
DataViewRowState
delayedRecordStates = (
DataViewRowState
)(-1);
119
SetIndex2("",
DataViewRowState
.CurrentRows, null, true);
127
SetIndex2("",
DataViewRowState
.CurrentRows, null, true);
134
public DataView(DataTable table, String RowFilter, string Sort,
DataViewRowState
RowState) {
147
((int)~(
DataViewRowState
.CurrentRows |
DataViewRowState
.OriginalRows))) != 0) {
150
else if (( ((int)RowState) & ((int)
DataViewRowState
.ModifiedOriginal) ) != 0 &&
151
( ((int)RowState) & ((int)
DataViewRowState
.ModifiedCurrent) ) != 0
170
internal DataView(DataTable table, System.Predicate<DataRow> predicate, System.Comparison<DataRow> comparison,
DataViewRowState
RowState) {
183
((int)~(
DataViewRowState
.CurrentRows |
DataViewRowState
.OriginalRows))) != 0) {
186
else if (( ((int)RowState) & ((int)
DataViewRowState
.ModifiedOriginal) ) != 0 &&
187
( ((int)RowState) & ((int)
DataViewRowState
.ModifiedCurrent) ) != 0
418
DefaultValue(
DataViewRowState
.CurrentRows),
421
public
DataViewRowState
RowStateFilter {
433
((int)~(
DataViewRowState
.CurrentRows |
DataViewRowState
.OriginalRows))) != 0)
435
else if (( ((int)value) & ((int)
DataViewRowState
.ModifiedOriginal) ) != 0 &&
436
( ((int)value) & ((int)
DataViewRowState
.ModifiedCurrent) ) != 0
567
SetIndex2("",
DataViewRowState
.CurrentRows, null, false);
654
if (delayedRecordStates != (
DataViewRowState
)(-1)) {
656
delayedRecordStates = (
DataViewRowState
)(-1);
1529
SetIndex("",
DataViewRowState
.CurrentRows, null);
1534
internal virtual void SetIndex(string newSort,
DataViewRowState
newRowStates, IFilter newRowFilter) {
1538
internal void SetIndex2(string newSort,
DataViewRowState
newRowStates, IFilter newRowFilter, bool fireEvent) {
1544
Debug.Assert((0 == (
DataViewRowState
.ModifiedCurrent & newRowStates)) ||
1545
(0 == (
DataViewRowState
.ModifiedOriginal & newRowStates)),
1591
newIndex = new Index(table, SortComparison, ((
DataViewRowState
)(int)recordStates), GetFilter());
1599
newIndex = table.GetIndex(Sort, ((
DataViewRowState
)(int)recordStates), GetFilter());
fx\src\data\System\Data\DataViewManager.cs (2)
124
dataViewSettingsCollection[table].RowStateFilter = (
DataViewRowState
)Enum.Parse(typeof(
DataViewRowState
),r.Value);
fx\src\data\System\Data\DataViewSetting.cs (4)
22
DataViewRowState
rowStateFilter =
DataViewRowState
.CurrentRows;
27
internal DataViewSetting(string sort, string rowFilter,
DataViewRowState
rowStateFilter) {
90
public
DataViewRowState
RowStateFilter {
fx\src\data\System\Data\ForeignKeyConstraint.cs (4)
239
Index childIndex = childKey.GetSortIndex( row.RowState == DataRowState.Deleted ?
DataViewRowState
.Deleted :
DataViewRowState
.CurrentRows );
343
Index childIndex = childKey.GetSortIndex( row.RowState == DataRowState.Deleted ?
DataViewRowState
.OriginalRows :
DataViewRowState
.CurrentRows);
fx\src\data\System\Data\Merger.cs (4)
183
ndxSearch = dst.primaryKey.Key.GetSortIndex(
DataViewRowState
.OriginalRows |
DataViewRowState
.Added );
244
ndxSearch = new Index(dst, dst.primaryKey.Key.GetIndexDesc(),
DataViewRowState
.OriginalRows |
DataViewRowState
.Added, (IFilter)null);
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (1)
206
DataRow[] dataRows = table.Select(null, ODB.ORDINAL_POSITION_ASC,
DataViewRowState
.CurrentRows); // MDAC 70928
fx\src\data\System\Data\RelatedView.cs (1)
102
internal override void SetIndex(string newSort,
DataViewRowState
newRowStates, IFilter newRowFilter) {
fx\src\data\System\Data\Select.cs (2)
20
private
DataViewRowState
recordStates;
41
public Select(DataTable table, string filterExpression, string sort,
DataViewRowState
recordStates) {
fx\src\data\System\Data\Selection.cs (25)
78
private readonly
DataViewRowState
recordStates;
97
public Index(DataTable table, IndexField[] indexFields,
DataViewRowState
recordStates, IFilter rowFilter)
100
public Index(DataTable table, System.Comparison<DataRow> comparison,
DataViewRowState
recordStates, IFilter rowFilter)
112
private Index(DataTable table, IndexField[] indexFields, System.Comparison<DataRow> comparison,
DataViewRowState
recordStates, IFilter rowFilter) {
118
(~(
DataViewRowState
.CurrentRows |
DataViewRowState
.OriginalRows))) != 0) {
147
public bool Equal(IndexField[] indexDesc,
DataViewRowState
recordStates, IFilter rowFilter) {
179
public
DataViewRowState
RecordStates {
653
private int GetChangeAction(
DataViewRowState
oldState,
DataViewRowState
newState) {
660
private static int GetReplaceAction(
DataViewRowState
oldState)
662
return ((0 != (
DataViewRowState
.CurrentRows & oldState)) ? ReplaceNewRecordForCompare : // Added/ModifiedCurrent/Unchanged
663
((0 != (
DataViewRowState
.OriginalRows & oldState)) ? ReplaceOldRecordForCompare : // Deleted/ModififedOriginal
687
DataViewRowState
states = recordStates;
704
if ((int)(states &
DataViewRowState
.Unchanged) != 0) {
709
if ((int)(states &
DataViewRowState
.Added) != 0) {
714
if ((int)(states &
DataViewRowState
.Deleted) != 0) {
719
if ((int)(states &
DataViewRowState
.ModifiedCurrent) != 0) {
722
else if ((int)(states &
DataViewRowState
.ModifiedOriginal) != 0) {
867
public void RecordStateChanged(int record,
DataViewRowState
oldState,
DataViewRowState
newState) {
874
public void RecordStateChanged(int oldRecord,
DataViewRowState
oldOldState,
DataViewRowState
oldNewState,
875
int newRecord,
DataViewRowState
newOldState,
DataViewRowState
newNewState) {
System.Data.DataSetExtensions (3)
System\Data\LinqDataView.cs (3)
77
DataViewRowState
.CurrentRows)
233
internal override void SetIndex(string newSort,
DataViewRowState
newRowStates, IFilter newRowFilter)
237
&& newRowStates !=
DataViewRowState
.CurrentRows)