Set rowstate


Author
Message
StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
On a DataRow like that, you have two options: you can call .RejectChanges() on the row, which will undo any changes to the data and mark the record as unchanged, or you can call .AcceptChanges() which will accept any changes you have made (retaining the data) and mark the row as unchanged.

Along the same line, if you call .SetAdded(), .SetModified() and I believe .SetDeleted() on the row, you can move it from an unchanged state to the corresponding state.

Chan
Chan
Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,
I created datatable act as temporary "cursor". My program will loop thru this datatable and check for rowstate to determine whether insert/update/delete record from underlying table.

How could I retain content of datatable.rows but set their rowstate to unchanged?

Thank you

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search