Datagrid Sizing

Discussion in 'ASP .Net' started by =?Utf-8?B?TXJNaWtl?=, Dec 27, 2004.

  1. Is it possible to specify (or somehow set) the amount of space between each
    datagrid row without changing the amount of space between datagrid columns?

    I have a datagrid displaying data which needs to print on specially-sized
    labels. In order to accurately print one-datagrid row-per-label, I need to
    somehow set 2-inches of blank space between each row.

    CellPadding and CellSpacing settings affect the amount of space between
    columns, as well as rows. But I need a way to just set a 2-inch margin
    between each datagrid row.

    Is it possible to accomplish this? Possibly printing a 2-inch blank row
    between each legitimate row? Thanks.
     
    =?Utf-8?B?TXJNaWtl?=, Dec 27, 2004
    #1
    1. Advertisements

  2. You need to use css styles and play with rules padding-top, padding-bottom,
    margin-top, margin-bottom.

    Eliyahu

    "MrMike" <> wrote in message
    news:...
    > Is it possible to specify (or somehow set) the amount of space between

    each
    > datagrid row without changing the amount of space between datagrid

    columns?
    >
    > I have a datagrid displaying data which needs to print on specially-sized
    > labels. In order to accurately print one-datagrid row-per-label, I need

    to
    > somehow set 2-inches of blank space between each row.
    >
    > CellPadding and CellSpacing settings affect the amount of space between
    > columns, as well as rows. But I need a way to just set a 2-inch margin
    > between each datagrid row.
    >
    > Is it possible to accomplish this? Possibly printing a 2-inch blank row
    > between each legitimate row? Thanks.
     
    Eliyahu Goldin, Dec 28, 2004
    #2
    1. Advertisements

  3. =?Utf-8?B?TXJNaWtl?=

    John Blair Guest

    This is what i use to print a 2inch row exactly.

    <table width=100% cellspacing=0 border=1 bordercolor=black cellpadding=0>
    <tr>
    <td style="height:2in" bgcolor="#9C0001" cellspacing=0 cellpadding=0
    width=100%/>
    </tr>
    </table>

    "MrMike" <> wrote in message
    news:...
    > Is it possible to specify (or somehow set) the amount of space between
    > each
    > datagrid row without changing the amount of space between datagrid
    > columns?
    >
    > I have a datagrid displaying data which needs to print on specially-sized
    > labels. In order to accurately print one-datagrid row-per-label, I need
    > to
    > somehow set 2-inches of blank space between each row.
    >
    > CellPadding and CellSpacing settings affect the amount of space between
    > columns, as well as rows. But I need a way to just set a 2-inch margin
    > between each datagrid row.
    >
    > Is it possible to accomplish this? Possibly printing a 2-inch blank row
    > between each legitimate row? Thanks.
     
    John Blair, Dec 28, 2004
    #3
  4. MrMike..
    Hope u solved ur Problem..
    Patrick



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Patrick Olurotimi Ige, Dec 29, 2004
    #4
  5. Eliyahu Goldin wrote:
    > You need to use css styles and play with rules padding-top, padding-bottom,
    > margin-top, margin-bottom.
    >
    > Eliyahu
    >
    > "MrMike" <> wrote in message
    > news:...
    >
    >>Is it possible to specify (or somehow set) the amount of space between

    >
    > each
    >
    >>datagrid row without changing the amount of space between datagrid

    >
    > columns?
    >
    >>I have a datagrid displaying data which needs to print on specially-sized
    >>labels. In order to accurately print one-datagrid row-per-label, I need

    >
    > to
    >
    >>somehow set 2-inches of blank space between each row.
    >>
    >>CellPadding and CellSpacing settings affect the amount of space between
    >>columns, as well as rows. But I need a way to just set a 2-inch margin
    >>between each datagrid row.
    >>
    >>Is it possible to accomplish this? Possibly printing a 2-inch blank row
    >>between each legitimate row? Thanks.

    >
    >
    >


    I adjust the height of each of the *Template styles except one (can't
    remember which one) and it acts like a free floater that absorbs the
    left over space. I think it was the footer template.
     
    DM McGowan II, Dec 29, 2004
    #5
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fabrizio

    ASPX page sizing

    Fabrizio, Nov 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    450
    Teemu Keiski
    Nov 27, 2003
  2. Tim Marsden

    Sizing and positioning of dynamic controls

    Tim Marsden, Feb 25, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    3,167
    Steven Cheng[MSFT]
    Mar 2, 2004
  3. Mad Scientist Jr

    problem sizing columns in datagrid

    Mad Scientist Jr, Aug 13, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    249
    Mike Hutton
    Aug 24, 2004
  4. -Alex

    DataGrid Column sizing - Help

    -Alex, Aug 30, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    4
    Views:
    316
    Jeffrey Tan[MSFT]
    Sep 8, 2004
  5. CDX

    Sizing the dataGrid

    CDX, Feb 3, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    239
    Eliyahu Goldin
    Feb 6, 2005
  6. Keefe Goldfisher via .NET 247

    Sizing text entry boxes on in-place editing of datagrid row with dynamically created columns

    Keefe Goldfisher via .NET 247, Mar 7, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    285
    Keefe Goldfisher via .NET 247
    Mar 7, 2005
  7. dew

    Datagrid & column sizing

    dew, Feb 23, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    255
    campwes
    Mar 8, 2006
  8. tektak
    Replies:
    0
    Views:
    235
    tektak
    Sep 20, 2004
Loading...