Hide columns in a DataGrid

znowy

New member
Joined
Jul 17, 2003
Messages
1
Location
Germany
hi,

is it possible to hide some columns in a dataGrid?
I connect my DataGrid with a access DB.
i.e I use following SQL command:
Select id, name, text from myTable

Connect the DataGrid with a DataTable:
DataGrid.DataSource = myDataTable

But now I only wanted to advertise the text and the name from myTable in the DataGrid.
How can I carry out this?
 
try with this code::

Code:
ds.Tables("myTable").Columns("myColumn").ColumnMapping = MappingType.Hidden


:D:D
 
Last edited by a moderator:
Back
Top