DataTable.Delete() vs DataTabel.Remove()

by rbellantoni 3/26/2010 7:13:00 AM

The biggest difference between the delete function and the remove function on a datatable, is that the delete does not actually delete the row. It simply marks it for deletion using rowstate. When the datatable is displayed, the "marked" rows are not shown, however the record is still in the table and the rows.count is still the same.

When you remove a row, the entire row is gone forever and the count is changed.

Thats the difference :)

Tags:

Comments

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  May 2020  >>
MoTuWeThFrSaSu
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

View posts in large calendar

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2020

Sign in