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 Controls / January 2006

Tip: Looking for answers? Try searching our database.

Two DataGridView controls - one form - layout issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kal - 26 Jan 2006 18:53 GMT
I have a simple form  to display two different data tables. The tables have
different numbers of columns and column headings so I put them in separate
DataGridView controls. Works fine except for layout. There is also a label
that I would like to be at the top.

One of these datagridview controls always displays itself in the upper left
corner of the form, the other I can place at will. I have tried placing
everything in flow a layout control, a panel control, and a table layout
control. I have set the dock property to bottom and changed the anchor
property. It will look fine in the designer, but then ignore the settings at
runtime.

What is the magic that gives this control a mind of its own?.

Kal
Kal - 26 Jan 2006 19:30 GMT
OK, I found it.

I started with some existing code and there was a method that was
overwriting the designer setup.
Kal

>I have a simple form  to display two different data tables. The tables have
>different numbers of columns and column headings so I put them in separate
[quoted text clipped - 11 lines]
>
> Kal

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.