DataView Columns

  • Thread starter Thread starter Karl Napp
  • Start date Start date
K

Karl Napp

Hi NG,

how to make a DataView show only selected COLUMNS?

E.g:
DataTable table // is already in memory and has two columns: "id" and
"value"
DataView view // should only show all rows from "value"


TIA,
KN

x-post & f'up to .adonet
 
Hi Karl,

Please try this:
MyDataView.Table.Columns.Remove("ColumnName")

Thank you, Mike
Microsoft, ASP.NET Support Professional

Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computer’s security.

This posting is provided "AS IS", with no warranties, and confers no rights.


--------------------
 
Back
Top