asp.net: huge difference between DataView.Table and DataView.ToTable

Both DataView.Table and DataView.ToTable return a DataTable from a DataView. The difference is that .Table gives you the underlying data, with no changes from the dataview’s sorting or filtering. ToTable on the other hand, gives you the data in the dataview after filtering and sorting!

This is the sort of thing I’ve come to expect from PHP; similarly named methods that actually do quite different things, and/or inconsistently named methods which do opposite things.

Leave a Reply

Your email address will not be published.

top