datagrid "can grow" ?

N

Nick Stansbury

Hi,

I've developed a series of custom controls that use or extend the
datagrid control. Obviously however I have the same old problem with grid
layout as opposed to flow layout - when the datagrid is initialised instead
of pushing everything below it further down it simply overlaps with any
controls that are below (i.e. y axis not z axis). it, which inclused other
datagrids. Now is there anyway around this? I've tried enclosing each one in
a flow layout panel - but obviously the panel just geows and overlaps each
control.

What should I do (other than give up with grid layout!).

Thanks in advance for any pointers....

Nick
 
J

John Saunders

Nick Stansbury said:
Hi,

I've developed a series of custom controls that use or extend the
datagrid control. Obviously however I have the same old problem with grid
layout as opposed to flow layout - when the datagrid is initialised
instead
of pushing everything below it further down it simply overlaps with any
controls that are below (i.e. y axis not z axis). it, which inclused other
datagrids. Now is there anyway around this? I've tried enclosing each one
in
a flow layout panel - but obviously the panel just geows and overlaps each
control.

What should I do (other than give up with grid layout!).

Give up grid layout. That's all there is to it. It positions elements
absolutely, so naturally, they won't move when the datagrid grows.

John Saunders
 
N

Niraj Ranka

Hello,
Why don't you try to use the flow layout panel... or grid layout panel (html
control)...
I think this may help..

Niraj Ranka
 
N

Nick Stansbury

Hi,

It doesn't really help - you can place the dgrid inside a flow layout
panel without much effect - the panel grows, but the panel itself simply
overlaps with controls below. The only solution I've found is to use grid
layout panel's to "wrap" around the datagrid - then the grid layout panel is
moved down by the datagrid and everything else moves with it

Nick
 
B

Ben Strackany

Nick,

You can of course get rid of grid layout. You could also put the datagrid &
all the controls below it into the same flow layout panel. Lastly, you could
use some javascript trickery to move items lower depending on the size of
the datagrid. The javascript would read the style.height &
style.offsetheight of the datagrid's DIV, then set the style.top value of
the DIV(s) containing the controls to that value + some number.
 

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

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top