Alex Rivera | Logout

Create ADO.NET DataView showing only selected Columns

Asked 2009-07-29T15:53:07.077
12

In C# & .NET, can one create a DataView that includes only a proper subset of the DataColumns of a given DataTable?

In terms of relational algebra, one assigns a RowFilter in order to perform a "selection" operation (σ). How would one perform a "projection" operation (π)?

Edit
Report

1 Answer

1

Well I can't see any reason for "wanting" to do that... Remember, a DataView is just a list of pointers to the rows in the original table, and there is obviously no way to remove columns from the the original table... at least not without affecting every other function utilizing that table... Just only use the columns you want...

answered 2009-07-29T15:58:05.427

Your Answer