473,734 Members | 2,806 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.co m
Nov 18 '05 #1
4 2457
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.c om> wrote in message
news:uU******** *****@tk2msftng p13.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.co m
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******** ********@tk2msf tngp13.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.c om> wrote in message
news:uU******** *****@tk2msftng p13.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.co m

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.c om> wrote in message
news:O4******** ******@TK2MSFTN GP12.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******** ********@tk2msf tngp13.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.c om> wrote in message
news:uU******** *****@tk2msftng p13.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.co m

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******** ******@TK2MSFTN GP11.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.c om> wrote in message
news:O4******** ******@TK2MSFTN GP12.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******** ********@tk2msf tngp13.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.c om> wrote in message
news:uU******** *****@tk2msftng p13.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.co m


Nov 18 '05 #5

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

Similar topics

6
6659
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... I have a form with a lot of controls side by side, etc. The Anchor is really only useful to resize 1 control on each line (and move all the others). BUT, does anyone have any articles or other ways to do this? For example, I am working on...
0
1260
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 their anchor properties set accordingly, for example, ensuring a button stays on the right border when the control is resized. Now in the control's design view everything works correctly, controls are correctly repositioned. However, when I put...
15
6519
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 accept other controls. The control i drag drop on it becomes the child of my custom control's parent form and not the child of my custom control. Then i added this line "" before my custom control class (i dont know what this line does). Now
1
2034
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 (simply contains a SplitterPanel), I've added controls (most of them are TextBox with the property Anchors set to Left and Right) to Panel2. All theses controls fits in the UserControl and when I resize it, all the controls have the correct behavior....
3
4521
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 runtime control to anchor properly? Second -- the program I'm writting is supposed to look like a dos application (long story). When the application is "Normal" aka a small window then everything looks great. But when I resize the window to...
0
1206
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, resize, dock and anchor controls in a Form Editor, run my application and all works fine. But when I close the form and reopen it in again in the VS2008 Form Editor some controls become resized to very large values. If I position them correctly they...
0
2722
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
14563
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
1062
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 what if have three columns (Columns as in visual sense. I'm not talking about any column control containing other controls) of controls? For example a form having a bunch of controls in the left side, a bunch in the middle and a bunch in the right....
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.