DataRowState.cs 1.4 KB

123456789101112131415161718192021222324252627282930
  1. //------------------------------------------------------------------------------
  2. // <copyright file="DataRowState.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. // <owner current="true" primary="true">amirhmy</owner>
  6. // <owner current="true" primary="false">markash</owner>
  7. // <owner current="false" primary="false">jasonzhu</owner>
  8. //------------------------------------------------------------------------------
  9. namespace System.Data {
  10. using System;
  11. // Gets the state of a DataRow object.
  12. [ Flags ]
  13. public enum DataRowState {
  14. // DataViewRowState.None = 00000000;
  15. // The row has been created but is not part of any DataRowCollection.
  16. // A DataRow is in this state immediately after it has been created and
  17. // before it is added to a collection, or if it has been removed from a collection.
  18. Detached = 0x00000001,
  19. // The row has not changed since AcceptChanges was last called.
  20. Unchanged = 0x00000002,
  21. // The row was added to a DataRowCollection, and AcceptChanges has not been called.
  22. Added = 0x00000004,
  23. // The row was deleted using the Delete method of the DataRow.
  24. Deleted = 0x00000008,
  25. // The row was modified and AcceptChanges has not been called.
  26. Modified = 0x000000010
  27. }
  28. }