473,659 Members | 2,667 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamically positioning DataGrids

I have a WebForm onto which I would like to place a number (probably
three) DataGrid controls directly under one another. These grids will
have a variable amount of rows. There will also be label controls used
as titles at the top of each of the grids.

In the designer everything looks fine but if the number of rows in the
browser is greater than that in the designer then the controls
overlap. I had assumed that the controls under the DataGrid would be
pushed down automatically depending on the number of rows but it does
not seem to be working.

Given that paging is not really an option in this situation, is there
any other simple way to dynamically arrange the controls?

TIA,

Shane O'Keeffe.
Nov 18 '05 #1
4 1155
First of all, use FlowLayout.

Secondly, it's a good idea to put everything in a table.

And if you want a grid to have a scrollbar(s), put it into a <div> with
style overflow:auto;

Eliyahu

"Shane O'Keeffe" <sh**********@h otmail.com> wrote in message
news:ae******** *************** ***@posting.goo gle.com...
I have a WebForm onto which I would like to place a number (probably
three) DataGrid controls directly under one another. These grids will
have a variable amount of rows. There will also be label controls used
as titles at the top of each of the grids.

In the designer everything looks fine but if the number of rows in the
browser is greater than that in the designer then the controls
overlap. I had assumed that the controls under the DataGrid would be
pushed down automatically depending on the number of rows but it does
not seem to be working.

Given that paging is not really an option in this situation, is there
any other simple way to dynamically arrange the controls?

TIA,

Shane O'Keeffe.

Nov 18 '05 #2
Eliyahu,

Thanks for your response.

Would that be a standard HTML table or a WebForms table?

Regards,

Shane.
"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message news:<OL******* *******@TK2MSFT NGP10.phx.gbl>. ..
First of all, use FlowLayout.

Secondly, it's a good idea to put everything in a table.

And if you want a grid to have a scrollbar(s), put it into a <div> with
style overflow:auto;

Eliyahu

"Shane O'Keeffe" <sh**********@h otmail.com> wrote in message
news:ae******** *************** ***@posting.goo gle.com...
I have a WebForm onto which I would like to place a number (probably
three) DataGrid controls directly under one another. These grids will
have a variable amount of rows. There will also be label controls used
as titles at the top of each of the grids.

In the designer everything looks fine but if the number of rows in the
browser is greater than that in the designer then the controls
overlap. I had assumed that the controls under the DataGrid would be
pushed down automatically depending on the number of rows but it does
not seem to be working.

Given that paging is not really an option in this situation, is there
any other simple way to dynamically arrange the controls?

TIA,

Shane O'Keeffe.

Nov 18 '05 #3
Shane,

It can be a standard table.

Eliyahu

"Shane O'Keeffe" <sh**********@h otmail.com> wrote in message
news:ae******** *************** ***@posting.goo gle.com...
Eliyahu,

Thanks for your response.

Would that be a standard HTML table or a WebForms table?

Regards,

Shane.
"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message

news:<OL******* *******@TK2MSFT NGP10.phx.gbl>. ..
First of all, use FlowLayout.

Secondly, it's a good idea to put everything in a table.

And if you want a grid to have a scrollbar(s), put it into a <div> with
style overflow:auto;

Eliyahu

"Shane O'Keeffe" <sh**********@h otmail.com> wrote in message
news:ae******** *************** ***@posting.goo gle.com...
I have a WebForm onto which I would like to place a number (probably
three) DataGrid controls directly under one another. These grids will
have a variable amount of rows. There will also be label controls used
as titles at the top of each of the grids.

In the designer everything looks fine but if the number of rows in the
browser is greater than that in the designer then the controls
overlap. I had assumed that the controls under the DataGrid would be
pushed down automatically depending on the number of rows but it does
not seem to be working.

Given that paging is not really an option in this situation, is there
any other simple way to dynamically arrange the controls?

TIA,

Shane O'Keeffe.

Nov 18 '05 #4
Thank you very much for your help. My pages are looking a lot better now.

Regards,

Shane.
Nov 18 '05 #5

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

Similar topics

2
1465
by: yufufi | last post by:
My web page contains only a panel control and I add datagrids at runtime. Viewstate for the datagrids are enabled but every time I postback the page I have to re bind data to data grids. I figured out this: (?) when I do a postback , asp.net looks to the html of the page and can't find the datagrids. It finds only the panel and loads its state ? everything is ok until this point .. but , my datagrids are not visible at the beginning. I...
0
1184
by: Billy | last post by:
I have a web page with a control (Control#A) on it. The control (#A) has a control (Control#B) on it which displays an exception message when set and displayed. I am creating a simple datagrid dynamically with delegates and assigning it to a placeholder on control #A. If, within a delegate of the dynamically built datagrid, I set a property on control #B, it sets fine but fails to reflect this on the displayed page. There is no...
1
2327
by: ree32 | last post by:
I have a placeholder and depending on a user input(a drop downlist) when the user clicks a button I dynamically create a number of datagrids and fill them with data from a database. But the problem is that on a postback I lose all the datagrids and their data. I have looked at numerous pages on the net regarding this issue. Many say you have to rebuild build the controls on postback. How am I meant to do this in my situation as I don't...
0
1062
by: Craig G | last post by:
i want to build a datagrid to use as a register for a number of courses. what i want to happen is that the tutor selects the course from a combo box. this then builds a grid for all students enrolled on the course along with the number of weeks the course has to run i want the datagrid to build a column for each week of the course. and then list the students in rows. with a checkbox being in every itemtemplate so that the tutor can say...
4
2418
by: bill | last post by:
Can I add multiple datagrid controls dynamically at runtime? I want to break up my dataset into separate datagrids, so I can insert a "<p style="page-break-before: always"> tag between them. The objective is for the user to be able to print the data with pagebreaks and column headers on each printed page. Thanks
1
1040
by: Anna | last post by:
Hi there, I have a master/detail page that I've created using a datagrid inside a repeater. I need to find a way to export the entire resulting web page into Excel, and the multiple datagrids are giving me problems. I need each one to have a unique name that I can refer to in the code I'm using to generate the Excel. Any ideas on how I can name the datagrids? I'm happy to provide more details if necessary.
3
2273
by: EricW | last post by:
I want to create my homepage completely dynamically, but when I create two imagecontrols and want to position them, they won't move at all. I've read some artikels about using the placeholder, but when I dynamically create one, I can't move it at all. Or am I doing something wrong here? Please advice/help.
2
1952
by: marijuanated | last post by:
Hi All, I am generating a series of tables in CSS. The tables should repeat themselves for a number of times governed by a counter that is calculated at runtime by the ASP code. The problem is that I have used top margins to position the tables in the ASP page. So the tables when repeated super-impose on the tables that are already placed at that margin position. Can someone suggest me a better way out to resolve this?
1
1696
by: Paddy | last post by:
The problem I am facing is as follows: I am populating an HTML table on my webpage with rows of data from a database. The rows may be sometimes 10 and sometimes say,3. I have two buttons on that page "Next" and "Previous" which I want displayed just a couple of lines below the table dynamically. Thus the positions of these buttons would vary depending on how many rows are rendered. I was wondering whether there is a programmatic way of...
0
8851
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
8751
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...
1
8535
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8629
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...
0
5650
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();...
0
4176
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
4338
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2757
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
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.