Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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???

qrt
Posted
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).
qrt

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...