VB .NET DataGrid, DataView or DataSet for Column selection
Posted on 2004-04-05
Apologies if this appears as a duplicate question. I thought I'd submitted it already, but my orginal question seems to have vanished.
I'd like to know how I should control which columns are displayed in my datagrid. Is it at the DataGrid, DataView or DataSet level.
I believe it is at the DataGrid level, but am not sure how to achieve it.
I have a DataGrid1 with its datasource set to DataView1 which is in turn a view of DataSet1. If DataView1 is the default view for DataSet1 that has ColA, ColB and ColC, how do I set up the DataGrid to just show ColA and ColC?