Grid Like Display for Controls

T

Tom

I need to display a series of controls (in my case, a custom control) in a
grid-like fashion. This means this particular control would be repeated
multiple times, arranged in a row/column format. It would also support
scrolling, and fixed/scrollable headers/footers. Basically just like a grid
control, but has the capability to use a custom control for each cell.

I don't think the grid control (nor the True DB Grid .NET control that we
use) supports putting other (custom) controls into the cell (and then
allowing the user to use that control). I've tried a series of panels,
etc.... but I run into problems with scrolling of the headers/footers, etc.

Just wondering if someone else has also had this problem, or if anyone know
of a grid control that supports this. Thanks for any info.

Tom
 
B

Bob

Parent your controls into the grid and have them track the cells they're
supposed to be in. Move them on scroll, resize them on row/column size
changes, etc. It's not that difficult, at least I've had no problems doing
it with C1's FlexGrid. You can prevent headers and footers from moving by
either not having them pareted in the grid in the first place or having them
follow the rectangles of cells in 'fixed' rows/columns.

You may also want to examine the possibility of manually painting what you
need the user to see in the grid cells and just handling clicks and other
events right there, especially if you're going to have a lot of rows and
columns.

HTH,
Bob
 
K

Ken Tucker [MVP]

Hi,

http://dotnet.leadit.be/extendeddatagrid/CategoryView.aspx?category=Home

Ken
-----------------
I need to display a series of controls (in my case, a custom control) in a
grid-like fashion. This means this particular control would be repeated
multiple times, arranged in a row/column format. It would also support
scrolling, and fixed/scrollable headers/footers. Basically just like a grid
control, but has the capability to use a custom control for each cell.

I don't think the grid control (nor the True DB Grid .NET control that we
use) supports putting other (custom) controls into the cell (and then
allowing the user to use that control). I've tried a series of panels,
etc.... but I run into problems with scrolling of the headers/footers, etc.

Just wondering if someone else has also had this problem, or if anyone know
of a grid control that supports this. Thanks for any info.

Tom
 

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

Top