Kurt Posted September 14, 2003 Posted September 14, 2003 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 CD's, 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??? Quote qrt
Moderators Robby Posted September 14, 2003 Moderators Posted September 14, 2003 Are you creating/generating the datagrid at runtime or design time? Quote Visit...Bassic Software
Kurt Posted September 15, 2003 Author Posted September 15, 2003 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). Quote qrt
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.