Can someone show me how to exclude columns from a DataTable shown by binding it to a form's data grid?
I can create a DataTable using a SQL statement to get data from an ACCESS database. But, while I want to use all the columns in the DataTable in associated analyses, I want to exclude some columns from the grid for presentational purposes.
The following code (with the underlying DataSet in 'objDS' and the data grid named 'dgridTable') shows the complete table OK:
Dim objTable as DataTable
objTable = objDS.Tables("Details")
dgridTable.DataSource = objDS
dgridTable.DataMember = "Details"
But how do I exclude selected columns from the grid?


Reply With Quote