473,387 Members | 1,611 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,387 software developers and data experts.

Rules of thumb for grid vs. flow mode in the designer?

Are there any rules of thumb for when it is appropriate to use grid mode vs.
flow mode in the Visual Studio.NET WebForm designer?
Nov 18 '05 #1
7 1529
On Fri, 2 Jul 2004 13:51:31 -0700, "Jack" <nf*@nospam.com> wrote:
Are there any rules of thumb for when it is appropriate to use grid mode vs.
flow mode in the Visual Studio.NET WebForm designer?


if you are designing for multiple computers then use flow.

-Adam
Nov 18 '05 #2
Grid Layout uses inline CSS styles for absolute positioning, by dragging in
the IDE. Flow Layout is traditional HTML layout. Personally, although we use
CSS, we don't like inline styles, so we develop using Flow, and add the CSS
classes, rather than styles. If you don't want to use inline styles for
absolute positioning, use Flow Layout.

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

"Jack" <nf*@nospam.com> wrote in message
news:ej**************@TK2MSFTNGP10.phx.gbl...
Are there any rules of thumb for when it is appropriate to use grid mode vs. flow mode in the Visual Studio.NET WebForm designer?

Nov 18 '05 #3

<as******@inlandkwpp.com> wrote in message
news:4s********************************@4ax.com...
On Fri, 2 Jul 2004 13:51:31 -0700, "Jack" <nf*@nospam.com> wrote:

if you are designing for multiple computers then use flow.


Is this because of browser compatibility issues?

If so, would it still be better to use for an Extranet application where
browser capability could be specified?
Nov 18 '05 #4
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:eZ**************@TK2MSFTNGP12.phx.gbl...
Grid Layout uses inline CSS styles for absolute positioning, by dragging in the IDE. Flow Layout is traditional HTML layout. Personally, although we use CSS, we don't like inline styles, so we develop using Flow, and add the CSS classes, rather than styles. If you don't want to use inline styles for
absolute positioning, use Flow Layout.


Why don't you like inline styles?
Nov 18 '05 #5
On Fri, 2 Jul 2004 14:06:23 -0700, "Jack" <nf*@nospam.com> wrote:

<as******@inlandkwpp.com> wrote in message
news:4s********************************@4ax.com.. .
On Fri, 2 Jul 2004 13:51:31 -0700, "Jack" <nf*@nospam.com> wrote:

if you are designing for multiple computers then use flow.


Is this because of browser compatibility issues?

If so, would it still be better to use for an Extranet application where
browser capability could be specified?


not so much browser compatibility than client screen specifications.
Users can change fonts, resolutions, global style sheets. By using
grid you are using absolute positioning which will cause your web page
to be drawn incorrectly in a diverse client environment.

-Adam
Nov 18 '05 #6
"Jack" <nf*@nospam.com> wrote in message
news:ej**************@TK2MSFTNGP10.phx.gbl...
Are there any rules of thumb for when it is appropriate to use grid mode vs. flow mode in the Visual Studio.NET WebForm designer?


I never use grid. It can produce a horrible mess if you're not careful where
you drag controls. At the very least, if you use grid, be sure to get your
layout tables correct before you start dragging controls to them.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #7
Hi Jack,

Inline styles put layout control into the HTML code. It is easier/faster to
make style changes by modifying an external style sheet, than to slog
through a whole bunch of inline styles in HTML documents and make changes to
them individually. In addition, let's say you wanted to apply the same style
to multiple HTML objects in a document. If you use inline styles, you are
duplicating the style code for that style, and if you need to change it
later, you have to change it in every inline style reference in your HTML.
If you use CSS classes, you can simply assign the same class to multiple
objects, and when you need to make a change, you change it in one place (the
external style sheet). It's much the same as the idea that when you see the
same code duplicated in your CodeBehind, or in another class, it is better
to declare a function, and simply call that function when you need its
functionality. That way, when you need to make a change, you only change the
one function, instead of having to slog through all your code, find the
duplicated code, and change every instance of it.

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

"Jack" <nf*@nospam.com> wrote in message
news:#f*************@TK2MSFTNGP12.phx.gbl...
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:eZ**************@TK2MSFTNGP12.phx.gbl...
Grid Layout uses inline CSS styles for absolute positioning, by dragging

in
the IDE. Flow Layout is traditional HTML layout. Personally, although we

use
CSS, we don't like inline styles, so we develop using Flow, and add the

CSS
classes, rather than styles. If you don't want to use inline styles for
absolute positioning, use Flow Layout.


Why don't you like inline styles?

Nov 18 '05 #8

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

Similar topics

2
by: Frosty | last post by:
Howto make datagrid enforce rules of xml schema? Created xml schema in the designer. Constraints created there using the following <xs:simpleType name="zipcode"><xs:restriction...
4
by: NWx | last post by:
Hi, I develop an ASP.NET app which should be used from Internet, so I don't have control over what browsers will be used. I don't want to target every possible users, so I don't really mind is...
2
by: Jerry Camel | last post by:
I'm using Grid Layout basically because it was the default, but I've got the whole page designed and changing to Flow layout would be a royal pain, I think... But now, I find I need to position a...
2
by: Brian Henry | last post by:
Hi, I have a data grid that is set up like this Page items displayed = 10 EnableViewState = false (i dont want to send large amounts of data over the internet!) CustomPaging = false...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
3
by: jonefer | last post by:
I tried all sorts of key combinations. How do I precisely move controls, such as labels or textboxes with the arrow keys? I notice that new labels or boxes only have 2 handles on them, -...
6
by: moondaddy | last post by:
I'm writing a windows app in WPF and want to change the shape of a thumb to an ellipse. Is this possible? also, the edges of the thumb are beveled. Is it possible to change this to a flat look...
2
by: moondaddy | last post by:
I'm trying to do something real simple. Add a thumb to a grid at the end of a line using c#. the code executes but I dont see the thumb. Can anyone explain what and what I need to do to properly...
2
by: =?Utf-8?B?Z2FuZQ==?= | last post by:
Hi, In a gridview, How can i display different columns between item and edit modes. For eg. i have a sql that returns productname, categoryname, etc. In viewmode, i need to display only...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...

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.