Datagrid adjustments

Kurt

0
Joined
Feb 14, 2003
Messages
113
Location
Los Angeles
I m pretty new in accessing data following the .NET way. To have a data grid displaying a table in a dataset worked out pretty fast. But now I m interested in leaving out some colums that are in the datatable (and not some rows, what could be done with some filter). Suppose I have in a table the Titles of some CDs, together with the Artists name and the length of the CD. Setting the dataSource property of the Datagrid object to the datatable displays all this information.

But suppose I would like to not show the data about the length of the CD to the User, while keeping that information in my datatable (so I could query on this column). ...

And what would I do set the width of Column "CD_Title" to as specific value???
 
I am doing this (want to do this) at runtime and have been reading something about gridColumnStylesCollection or something, but I guess I am a little confused at the moment. ADO.NET seems to be pretty big, with some really advanced classes. Until now I was used to work with ADO, both in VB6 and in .NET (still seems to work).
 
Back
Top