Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

33 lines
1.4 KiB
C#

//------------------------------------------------------------------------------
// <copyright file="DataViewRowState.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <owner current="true" primary="true">[....]</owner>
// <owner current="true" primary="false">[....]</owner>
// <owner current="false" primary="false">[....]</owner>
//------------------------------------------------------------------------------
namespace System.Data {
using System;
using System.ComponentModel;
/// <devdoc>
/// <para>Describes the version of data in a <see cref='System.Data.DataRow'/>.</para>
/// </devdoc>
[
Flags,
Editor("Microsoft.VSDesigner.Data.Design.DataViewRowStateEditor, " + AssemblyRef.MicrosoftVSDesigner, "System.Drawing.Design.UITypeEditor, " + AssemblyRef.SystemDrawing)
]
public enum DataViewRowState {
None = 0x00000000,
// DataRowState.Detached = 0x01,
Unchanged = DataRowState.Unchanged,
Added = DataRowState.Added,
Deleted = DataRowState.Deleted,
ModifiedCurrent = DataRowState.Modified,
ModifiedOriginal = (((int)ModifiedCurrent) << 1),
OriginalRows = Unchanged | Deleted | ModifiedOriginal,
CurrentRows = Unchanged | Added | ModifiedCurrent
}
}