Re: datagrid "can grow" ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ben Strackany (infoNOSPAM_at_developmentnow.nospam.com)
Date: 12/21/04


Date: Tue, 21 Dec 2004 17:08:52 -0600

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.

-- 
Ben Strackany
www.developmentnow.com
"Nick Stansbury" <nick.stansbury@sage-removepartners.com> wrote in message
news:ucBUbC35EHA.2016@TK2MSFTNGP15.phx.gbl...
> 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
>
>
> "Niraj Ranka" <nirajranka@gmail.com> wrote in message
> news:eWv$6U25EHA.2876@TK2MSFTNGP12.phx.gbl...
> > 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
> >
> > "Nick Stansbury" <nick.stansbury@sage-removepartners.com> wrote in
message
> > news:edh1%23so5EHA.2428@TK2MSFTNGP14.phx.gbl...
> > > 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
> > >
> > >
> >
> >
>
>


Relevant Pages

  • RE: Height of a Datagrid
    ... Welcome to ASPNET newsgroup. ... elements to construct our webpage's layout. ... additional controls onto the page according to the existing control's ... table so that the Button will surely display under the DataGrid. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: datagrid "can grow" ?
    ... > layout as opposed to flow layout - when the datagrid is initialised ... > controls that are below. ... > What should I do (other than give up with grid layout!). ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • RE: Height of a Datagrid
    ... | Subject: RE: Height of a Datagrid ... | Hi Russ, ... | elements to construct our webpage's layout. ... | additional controls onto the page according to the existing control's ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Labels drawn differently in IDE and runtime
    ... As you add the label to any parent with layout, be it a table-layout-panel cell, a flow-layout-panel, or just some Dock to a side of any panel or form, the behavior of the label becomes fully predictable, even if it undergoes some queer font rendering changes. ... For example, if we're about to lay out a dialog with a banner on the top, some buttons at the bottom, and controls in the middle, I would not add all of the controls to the same panel. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: question about VB.Net
    ... LLJ wrote: ... DataGrid, Lable, Text into it. ... then i put a panel into it, and tried to move all the other controls in the panel. ...
    (microsoft.public.dotnet.languages.vb)