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 / June 2007

Tip: Looking for answers? Try searching our database.

grid of user controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mrrrk - 06 Jun 2007 10:38 GMT
Hi

Looking for a bit of advice here.

I'm building an application that needs to display a grid (days in a year
or month along the top and people down the side) in which each cell is a
user control.  The number of rows and columns are both variable.

I've contemplated and partially tried various ways to tackle this, e.g.:
  - DataGrid (need to define columns, styles? - not got that far)
  - DataGridView (ditto - better / easier than DataGrid?)
  - Adding controls to a scrollable panel (possible issues with running
out of window handles with large grid)

I did also try doing this by rendering a large bitmap - this ran fairly
nicely when it worked but I kept getting OutOfMemory exceptions and I
would have to sacrifice a lot of flexibility and interactivity.

As you can see I have a few ideas and I was wondering if anyone out
there had any suggestions, alternatives or hints on what best practice
might be with this sort of thing?

Thanks in advance
Thomas - 06 Jun 2007 15:09 GMT
Hello Mark,

What exactly do you want to have in each cell - is it simple TextBox for
entering some string or something more complex? I think one of the grid
components could satisfy your needs but it's better to write down some
more details.

Regards,
Thomas

-----------------------------------------
NConstruct - Intelligent Software Factory
http://www.nconstruct.com
-----------------------------------------

> Hi
>
[quoted text clipped - 19 lines]
>
> Thanks in advance
mrrrk - 07 Jun 2007 08:42 GMT
Hi

I do want something a bit more complex that a simple field entry (e.g.
not just a textbox).  I've had a bit more of a play around and it seems
I've answered my own question: DataGridView is the way to go with my own
DataGridViewCell (and DataGridViewColumn) class.

Thanks

> Hello Mark,
>
[quoted text clipped - 35 lines]
>>
>> Thanks in advance

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.