|
-
Jan 5th, 2004, 10:15 PM
#1
Thread Starter
Junior Member
hiding columns from a form's data grid
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|