grid of user controls

  • Thread starter Thread starter mrrrk
  • Start date Start date
M

mrrrk

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
 
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
 
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
 
Back
Top