RE: Datagrid layout difficulty

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I never define the location of the controls. It can be really annoying to
have such a problem. Why dont you insert the controls in a table or something
without defining the location?

--
Sonu Kapoor - [MCP]
ASP.NET Moderator
WebSite: http://www.Kapoorsolutions.com
Blog: http://www.Kapoorsolutions.com/blog/
ASP.NET News: http://www.Kapoorsolutions.com/reblogger/


"zdrakec@xxxxxxxxx" wrote:

> Hello all:
>
> I have a datagrid that can grow when populated; when it does, it
> "overflows" various controls I have placed beneath it on the form. I
> have tried switching to Flow layout for the page, but the layout thus
> produced is unsatisfactory. I would welcome suggestions for how to
> re-locate my controls at runtime. My first thought was to retrieve the
> styles for the grid, get the top and height values (so I would know
> where to place the following controls), but height is not in the style
> and I have deliberately not set the height at design-time so as to have
> consistent row sizes. At run-time, the height still reports as 0.0...
>
> Any suggestions will be most welcome.
>
> Thanks much,
> zdrakec
>
>
.



Relevant Pages

  • Re: Loosing css?
    ... How are you laying the controls out? ... Are using Flow Layout? ... tables is the best way of keeping consistent layout when page changes. ... Eliyahu ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Problem With the FlowLayoutPanel
    ... I am using the flow Layout panel to display the Group of controls. ... Controls added in the panel are more than what the panel can display. ... My requirement is to not use the scroll bar instead there should be two ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: dynamic data grid placement question
    ... As I said, once you change to FlowLayout, any NEW controls placed on the ... Delete the existing controls and drag new ones onto the form in their place, ... >I tried setting up the form using the grid layout and then changing the ... > properties to flow layout but seems like the grid is still covering ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: No grid layout - but can I arrow the controls?
    ... treeview HTML Designer, then CSS positioning... ... textbox and move it pixel by pixel (it may perhaps not work for controls ... AFAIK most sites are using the flow layout i.e. the precise location is not ... It will be much more easier to add/remove rows than if all controls are ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: datagrid "can grow" ?
    ... Why don't you try to use the flow layout panel... ... Obviously however I have the same old problem with grid ... > controls that are below. ... > a flow layout panel - but obviously the panel just geows and overlaps each ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)