Extracting column names from a DataView
Posted on 2008-10-03
I found an answer here that uses the DataView.Table property to get the column names. This is valid if all of the columns are used in the DataView. However, I have DataView instances that do not always show all of the columns. Both the .Table property and the ToTable() method return a DataTable with ALL of the columns of the underlying table. Is there a way to extract the column names from the DataView itself so that I can only show those that pertain to the DataView? Is there some way to isolate that information?