grid of user controls


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
 
Ad

Advertisements

T

Thomas

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
 
Ad

Advertisements

M

mrrrk

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Grid control 0
treeview grid control 2
ThreadPooling in Grid Control 0
Crosstab grid Presentation? Control? 0
Paging in Windows Forms grid control ? 1
Best third party grid control 6
grid 0
grid 1

Top