Skip to content

Erroneous statement in docs? #12525

@HexadigmSystems

Description

@HexadigmSystems

Type of issue

Typo

Description

Hi there,

It's my understanding that this statement in the DataRow.Delete docs (going back many years I believe):

"If the RowState of the row is Added, the RowState becomes Detached and the row is removed from the table when you call AcceptChanges."

Isn't entirely correct since AFAIK AcceptChanges doesn't need to be called to remove an "Added" record. I believe it's immediately removed from the table when DataRow.Delete is called. Can someone clarify the situation and correct the docs or set me straight if I'm mistaken about something. Thanks.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.data.datarow.delete?view=net-10.0#system-data-datarow-delete

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Data/DataRow.xml

Document Version Independent Id

446c9a7c-9b96-ff1f-8e23-e14a800e70c5

Platform Id

4e1bfe0e-f1a1-5f51-c5ab-5e8e286cc589

Article author

@dotnet-bot

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.DataData APIs (ADO.NET, XML, etc).untriagedNew issue has not been triaged by the area owner

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions