473,890 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dynamic data grid placement question

Hi I have 2 data grids and several controls on a web page. The grids will
vary in size, just wondering if the lower grid could be covered by part of
the upper grid depending on its size or is there a way to dynamically shift
the lower grid so it appears just below the upper grid?
Thanks.
--
Paul G
Software engineer.
Nov 18 '05 #1
6 1490
The easiest solution is to set your WebForm's PageLayout property to
FlowLayout.
This will cause any new controls placed on the form to flow one after the
other instead of bunching up on top of each other like they sometimes do if
you specify per-pixel (GridLayout) placement.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:A1******** *************** ***********@mic rosoft.com...
Hi I have 2 data grids and several controls on a web page. The grids will
vary in size, just wondering if the lower grid could be covered by part of
the upper grid depending on its size or is there a way to dynamically
shift
the lower grid so it appears just below the upper grid?
Thanks.
--
Paul G
Software engineer.

Nov 18 '05 #2
ok thanks, thought there might be something built in to handle this.

"Steve C. Orr [MVP, MCSD]" wrote:
The easiest solution is to set your WebForm's PageLayout property to
FlowLayout.
This will cause any new controls placed on the form to flow one after the
other instead of bunching up on top of each other like they sometimes do if
you specify per-pixel (GridLayout) placement.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:A1******** *************** ***********@mic rosoft.com...
Hi I have 2 data grids and several controls on a web page. The grids will
vary in size, just wondering if the lower grid could be covered by part of
the upper grid depending on its size or is there a way to dynamically
shift
the lower grid so it appears just below the upper grid?
Thanks.
--
Paul G
Software engineer.


Nov 18 '05 #3
Yes, there is. Just put your grids in an html table.

Eliyahu

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:A7******** *************** ***********@mic rosoft.com...
ok thanks, thought there might be something built in to handle this.

"Steve C. Orr [MVP, MCSD]" wrote:
The easiest solution is to set your WebForm's PageLayout property to
FlowLayout.
This will cause any new controls placed on the form to flow one after the other instead of bunching up on top of each other like they sometimes do if you specify per-pixel (GridLayout) placement.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:A1******** *************** ***********@mic rosoft.com...
Hi I have 2 data grids and several controls on a web page. The grids will vary in size, just wondering if the lower grid could be covered by part of the upper grid depending on its size or is there a way to dynamically
shift
the lower grid so it appears just below the upper grid?
Thanks.
--
Paul G
Software engineer.


Nov 18 '05 #4
I tried setting up the form using the grid layout and then changing the page
properties to flow layout but seems like the grid is still covering controls.
Just wondering it is is difficult to set up the html table as I have 2 grids
and half a dozen controls, the grid size varies depending on what data gets
written into it.
thanks, Paul.

"Eliyahu Goldin" wrote:
Yes, there is. Just put your grids in an html table.

Eliyahu

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:A7******** *************** ***********@mic rosoft.com...
ok thanks, thought there might be something built in to handle this.

"Steve C. Orr [MVP, MCSD]" wrote:
The easiest solution is to set your WebForm's PageLayout property to
FlowLayout.
This will cause any new controls placed on the form to flow one after the other instead of bunching up on top of each other like they sometimes do if you specify per-pixel (GridLayout) placement.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:A1******** *************** ***********@mic rosoft.com...
> Hi I have 2 data grids and several controls on a web page. The grids will > vary in size, just wondering if the lower grid could be covered by part of > the upper grid depending on its size or is there a way to dynamically
> shift
> the lower grid so it appears just below the upper grid?
> Thanks.
> --
> Paul G
> Software engineer.


Nov 18 '05 #5
As I said, once you change to FlowLayout, any NEW controls placed on the
form will use flow layout.
Delete the existing controls and drag new ones onto the form in their place,
or switch to HTML view and delete the CSS positioning for all the existing
controls..

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:7D******** *************** ***********@mic rosoft.com...
I tried setting up the form using the grid layout and then changing the
page
properties to flow layout but seems like the grid is still covering
controls.
Just wondering it is is difficult to set up the html table as I have 2
grids
and half a dozen controls, the grid size varies depending on what data
gets
written into it.
thanks, Paul.

"Eliyahu Goldin" wrote:
Yes, there is. Just put your grids in an html table.

Eliyahu

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:A7******** *************** ***********@mic rosoft.com...
> ok thanks, thought there might be something built in to handle this.
>
> "Steve C. Orr [MVP, MCSD]" wrote:
>
> > The easiest solution is to set your WebForm's PageLayout property to
> > FlowLayout.
> > This will cause any new controls placed on the form to flow one after

the
> > other instead of bunching up on top of each other like they sometimes
> > do

if
> > you specify per-pixel (GridLayout) placement.
> >
> > --
> > I hope this helps,
> > Steve C. Orr, MCSD, MVP
> > http://Steve.Orr.net
> >
> >
> > "Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
> > news:A1******** *************** ***********@mic rosoft.com...
> > > Hi I have 2 data grids and several controls on a web page. The
> > > grids

will
> > > vary in size, just wondering if the lower grid could be covered by

part of
> > > the upper grid depending on its size or is there a way to
> > > dynamically
> > > shift
> > > the lower grid so it appears just below the upper grid?
> > > Thanks.
> > > --
> > > Paul G
> > > Software engineer.
> >
> >
> >


Nov 18 '05 #6
ok thanks for the information. Probably will switch to HTML and delete the
CSS positioning stuff because of the large number of contols and multiple
grids.

"Steve C. Orr [MVP, MCSD]" wrote:
As I said, once you change to FlowLayout, any NEW controls placed on the
form will use flow layout.
Delete the existing controls and drag new ones onto the form in their place,
or switch to HTML view and delete the CSS positioning for all the existing
controls..

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:7D******** *************** ***********@mic rosoft.com...
I tried setting up the form using the grid layout and then changing the
page
properties to flow layout but seems like the grid is still covering
controls.
Just wondering it is is difficult to set up the html table as I have 2
grids
and half a dozen controls, the grid size varies depending on what data
gets
written into it.
thanks, Paul.

"Eliyahu Goldin" wrote:
Yes, there is. Just put your grids in an html table.

Eliyahu

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:A7******** *************** ***********@mic rosoft.com...
> ok thanks, thought there might be something built in to handle this.
>
> "Steve C. Orr [MVP, MCSD]" wrote:
>
> > The easiest solution is to set your WebForm's PageLayout property to
> > FlowLayout.
> > This will cause any new controls placed on the form to flow one after
the
> > other instead of bunching up on top of each other like they sometimes
> > do
if
> > you specify per-pixel (GridLayout) placement.
> >
> > --
> > I hope this helps,
> > Steve C. Orr, MCSD, MVP
> > http://Steve.Orr.net
> >
> >
> > "Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
> > news:A1******** *************** ***********@mic rosoft.com...
> > > Hi I have 2 data grids and several controls on a web page. The
> > > grids
will
> > > vary in size, just wondering if the lower grid could be covered by
part of
> > > the upper grid depending on its size or is there a way to
> > > dynamically
> > > shift
> > > the lower grid so it appears just below the upper grid?
> > > Thanks.
> > > --
> > > Paul G
> > > Software engineer.
> >
> >
> >


Nov 18 '05 #7

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

Similar topics

1
17692
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to Create a Dynamic Crosstab Report PRODUCT :Microsoft Access PROD/VER:1.00 1.10 OPER/SYS:WINDOWS
0
1137
by: Amy Snyder | last post by:
I have a page that has 13 filters used to query a database. I am using the data grid to return the search results. The user has the ability to show from 2-13 columns of data. I have this part working without a problem. My question is how do I create the sort for this data grid when the columns are chosen at run-time? On another note, can I display a check box in the first columns of every row?
0
1990
by: Colin Ramsay | last post by:
Hi all, I don't normally post swathes of code like this but I am truly banging my head off my desk here... I've dynamically created a datagrid within a usercontrol. There are two columns which contain buttons to Edit & Delete rows. For some reason, the ItemCommand event which these should be connected to isn't firing.
13
3688
by: Chris Thunell | last post by:
I have created several grids dynamically and have added them to different HTML placeholders on a vb.net web form. The grids and controls within them come up and view beautifully when the web page first starts, but when I click on a button, and the page comes back, my dynamically created grid and controls are not visible. Any thoughts? Please view my sample code below. If Not ispostback then creategrids end if
1
2889
by: JMann101 | last post by:
I am writing a ASP.NET(VB) application and am having some trouble. I have a datagrid which list users and when an admin clicks "edit" a defined column becomes visible and a dynamic listbox control is added to that column/row. When the admin clicks "update" I am unable to retrieve the values that were selected from that listbox. Basically, This is a multi-select listbox, so I need to loop to pull all selected items. This is the only...
4
5047
by: Larry Grady | last post by:
Anyone up for a challenge? I've been struggling with this for a few days and was hoping someone could help me. Pouring through all the messageboards I just can't find the solution. We have a GridView that needs to be dynamically designed, depending on what collection of fields our uses want to edit for their product data. We have 400+ fields of information per product so they're selecting a subset of those fields to edit.
3
1760
by: topmind | last post by:
I am generally new to dot.net, coming from "scriptish" web languages such as ColdFusion and Php. I have a few questions if you don't mind. First, how does one go about inserting dynamic SQL during run-time without lots of quotes? For example, adding "AND" clauses that may or may not be present based on the query criteria form. Some of the asp.net examples use the one-line append approach which
3
2729
by: Jordan | last post by:
Hey Peoples, I'm wonderg if there is a way to make a subclass of wx.grid.Grid in which the coloumn labels for the grid appear on the bottom of the grid instead of the top. 1 2 3 4 5 a| | | | | | b| | | | | | c| | | | | | d| | | | | |
1
2306
by: koren99 | last post by:
Hello, I have a gridview that is filled with a datasource & template fields dynamically. ( that has to be done because i ask the user for a datasource) anyway, i started out creating a static but empty grid. and added the template controls and datasource & activated grid.DataBind() in the page_load event. that gave me all the info when the page loaded on screen. now i have an edit and update buttons on each row and pressing the...
0
9976
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
9814
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
11214
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
10449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8006
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5834
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6034
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4257
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3266
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.