473,320 Members | 1,910 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Anchor controls

I have an ASP.NET form written in C#, on this form I have few controls and a DataGrid control, under the DataGrid control I have few more controls. The DataGrid defaults to display 10 items.

When there are less than 10 items in the DataGrid there is an empty space between the DataGrid and the controls underneath the DataGrid, my question is how can get the controls underneath the DataGrid to move up dynamically depending on the size of the DataGrid control?

Peter

--
Thanks
-------------------
cz****@wsinc.com
Nov 18 '05 #1
4 2430
Use FlowLayout instead of (default) GridLayout in your Pages. GridLayout
uses CSS and absolute positioning to position items on a page. FlowLayout
uses the default HTML layout rules.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Peter" <cz****@wsinc.com> wrote in message
news:uU*************@tk2msftngp13.phx.gbl...
I have an ASP.NET form written in C#, on this form I have few controls and a
DataGrid control, under the DataGrid control I have few more controls. The
DataGrid defaults to display 10 items.

When there are less than 10 items in the DataGrid there is an empty space
between the DataGrid and the controls underneath the DataGrid, my question
is how can get the controls underneath the DataGrid to move up dynamically
depending on the size of the DataGrid control?

Peter

--
Thanks
-------------------
cz****@wsinc.com
Nov 18 '05 #2
Is there an easy way to change from GridLayout to Pagelayout after the controls are on the form, I have changed to Pagelayout after the controls were already on the form and it had no effect?

The <form id line changed but the rest of the controls stated the same in the HTML page.

"Kevin Spencer" <ke***@takempis.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl...
Use FlowLayout instead of (default) GridLayout in your Pages. GridLayout
uses CSS and absolute positioning to position items on a page. FlowLayout
uses the default HTML layout rules.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Peter" <cz****@wsinc.com> wrote in message
news:uU*************@tk2msftngp13.phx.gbl...
I have an ASP.NET form written in C#, on this form I have few controls and a
DataGrid control, under the DataGrid control I have few more controls. The
DataGrid defaults to display 10 items.

When there are less than 10 items in the DataGrid there is an empty space
between the DataGrid and the controls underneath the DataGrid, my question
is how can get the controls underneath the DataGrid to move up dynamically
depending on the size of the DataGrid control?

Peter

--
Thanks
-------------------
cz****@wsinc.com

Nov 18 '05 #3
> Is there an easy way to change from GridLayout to Pagelayout after the
controls are on the form, I have changed to
Pagelayout after the controls were already on the form and it had no effect?

I don't know of any. BTW, the term is "FlowLayout" not "PageLayout".

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Peter" <cz****@wsinc.com> wrote in message
news:O4**************@TK2MSFTNGP12.phx.gbl...
Is there an easy way to change from GridLayout to Pagelayout after the
controls are on the form, I have changed to Pagelayout after the controls
were already on the form and it had no effect?

The <form id line changed but the rest of the controls stated the same in
the HTML page.

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Use FlowLayout instead of (default) GridLayout in your Pages. GridLayout
uses CSS and absolute positioning to position items on a page. FlowLayout
uses the default HTML layout rules.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Peter" <cz****@wsinc.com> wrote in message
news:uU*************@tk2msftngp13.phx.gbl...
I have an ASP.NET form written in C#, on this form I have few controls and a DataGrid control, under the DataGrid control I have few more controls. The DataGrid defaults to display 10 items.

When there are less than 10 items in the DataGrid there is an empty space
between the DataGrid and the controls underneath the DataGrid, my question
is how can get the controls underneath the DataGrid to move up dynamically
depending on the size of the DataGrid control?

Peter

--
Thanks
-------------------
cz****@wsinc.com

Nov 18 '05 #4
OK, Thanks

I rearanged the controls manualy, it works now.

Thanks for your help!

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uD**************@TK2MSFTNGP11.phx.gbl...
Is there an easy way to change from GridLayout to Pagelayout after the controls are on the form, I have changed to
Pagelayout after the controls were already on the form and it had no

effect?

I don't know of any. BTW, the term is "FlowLayout" not "PageLayout".

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Peter" <cz****@wsinc.com> wrote in message
news:O4**************@TK2MSFTNGP12.phx.gbl...
Is there an easy way to change from GridLayout to Pagelayout after the
controls are on the form, I have changed to Pagelayout after the controls
were already on the form and it had no effect?

The <form id line changed but the rest of the controls stated the same in
the HTML page.

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Use FlowLayout instead of (default) GridLayout in your Pages. GridLayout
uses CSS and absolute positioning to position items on a page. FlowLayout uses the default HTML layout rules.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Peter" <cz****@wsinc.com> wrote in message
news:uU*************@tk2msftngp13.phx.gbl...
I have an ASP.NET form written in C#, on this form I have few controls and a
DataGrid control, under the DataGrid control I have few more controls.

The
DataGrid defaults to display 10 items.

When there are less than 10 items in the DataGrid there is an empty

space between the DataGrid and the controls underneath the DataGrid, my question is how can get the controls underneath the DataGrid to move up dynamically depending on the size of the DataGrid control?

Peter

--
Thanks
-------------------
cz****@wsinc.com


Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Richard Brown | last post by:
Ok, I celebrate and rejoice in the Anchor property. So wonderful compared to the horrible 'resize' code I had to write in VB6, there is just no end to the wonders of VB.NET..... uh, ok..... BUT......
0
by: James | last post by:
I have a composite custom control which is constructed of several other controls, such as command buttons, a listview etc. I have several controls which border the boundary of the container and have...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
1
by: Martin | last post by:
Hi all ! I use Visual Studio .NET 2005 SP1 (+ Updates for Vista) on Windows Vista. I have a strange problem in a WinForm application. In a UserControl, which inherit another UserControl...
3
by: Joseph Gruber | last post by:
Hi all -- I have two questions. First, I'm adding a control to my form at runtime and the control/form seems to ignore the anchor property of the runtime control. Any idea how I can get a...
0
by: =?Utf-8?B?VmljdG9y?= | last post by:
Hi, I have a problem with the Form Editor VS2008 in a C# Windows application. Form Editor seems to change size of some controls to an arbitrary large values by its own will. I position,...
0
ThatThatGuy
by: ThatThatGuy | last post by:
Anyone can tell me how can i anchor controls in WPF or Silverlight as it is done in Windows Forms Programming
1
ThatThatGuy
by: ThatThatGuy | last post by:
Anyone can tell me how can i anchor controls in WPF or Silverlight as it is done in Windows Forms Programming
0
by: priyamtheone | last post by:
Hi, we all know how to dock or anchor controls so that they resize themselves accordingly when a form is resized. It works fine till we have rows of controls on left and right size of the form. But...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.