Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

How do I hide a column in a datagrid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TonyJ - 24 Oct 2007 08:03 GMT
Hello!

Assume I have a datasource consisting of a database table. This table has 5
column.

If I now want to use a bound datagrid but want to display only 4 of these 5
columns is that possible.

How is that done?

I assume I must hide the column that should not be displayed in some way.

//Tony
Chris Shepherd - 24 Oct 2007 13:33 GMT
> Assume I have a datasource consisting of a database table. This table has 5
> column.
>
> If I now want to use a bound datagrid but want to display only 4 of these 5
> columns is that possible.

Are we talking a DataGrid in .NET 1.1, or a DataGridView in .NET 2.0+?

> How is that done?
>
> I assume I must hide the column that should not be displayed in some way.

With a DataGridView yes, you just set the DataGridViewColumn's Visible
attribute to false.

Chris.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.