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 / Windows Forms / WinForm General / July 2007

Tip: Looking for answers? Try searching our database.

How to show the column headers for a DataGridView

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter - 09 Jul 2007 14:36 GMT
Hi folks,
    I created a DataGridView control as below:
...
DataGridView grid = new DataGridView();
...
ds = new System.Data.DataSet();
ds.Fill(ds, "dsTable1");
BindingSource bindsrc = new BindingSource();
bindsrc.DataSource = ds;
bindsrc.DataSource = "daTable1";
grid.DataSource = bindsrc;

When I run the application, everything is fine. But no column headers show
up. Please advise. Thanks.
PeterK
Peter - 09 Jul 2007 15:18 GMT
When I first developed this application, I could see the column headers.  
Later I added the menu,the headers disappered. they must be coverred by the
menu. I am apology for this confusion.
peterK

> Hi folks,
>      I created a DataGridView control as below:
[quoted text clipped - 11 lines]
> up. Please advise. Thanks.
> PeterK

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.