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

Datagrid Sizing

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.
Nov 19 '05 #1
4 1356
You need to use css styles and play with rules padding-top, padding-bottom,
margin-top, margin-bottom.

Eliyahu

"MrMike" <Mr****@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.com...
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.

Nov 19 '05 #2
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" <Mr****@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.com...
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.

Nov 19 '05 #3
MrMike..
Hope u solved ur Problem..
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #4
Eliyahu Goldin wrote:
You need to use css styles and play with rules padding-top, padding-bottom,
margin-top, margin-bottom.

Eliyahu

"MrMike" <Mr****@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.com...
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.
Nov 19 '05 #5

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

Similar topics

2
by: sujith | last post by:
It will be great if any one helps me in sizing fonts in browser!!! I tried this code it worked in Konqueror but not in Mozilla I need a solution that will work in IE,Netscape,Mozilla etc.... ...
2
by: JasmineC | last post by:
Hi there! I'm having some problems printing out my windows form. Here's what I need to do: I need to print a datagrid off a windows form, however the datagrid is bigger than screen. When I tried...
2
by: Tim Wallace | last post by:
I'm using Visual Studio 2003. Is there a way one can cause columns in a DataGrid to autosize? Also, is there a way to cause the last column to take up the remaining space between the end of the...
3
by: flast | last post by:
I have a datagrid with 4 columns, how can I set the width of any particular column at either design or run time? I'm tired of constantly having to manually re-size a particular column every time I...
3
by: Brian Mitchell | last post by:
I hate to ask this question because I'm sure it's been asked before, but how do you automatically resize the columns in a datagrid when the form is resized? Thanks!!
3
by: Helen Trim | last post by:
How can I set the sizes of columns in a datagrid? Thanks in advance Helen
2
by: DC | last post by:
Hi all, is there any short way to accomplish column "auto"-sizing in a Datagrid? (Something like double-clicking column header separator) I suppose datagrid object calls some kind of "internal"...
0
by: =?Utf-8?B?TmVpbEdvdHQ=?= | last post by:
I have added a datagrid and dock filled it in a split container. I have properties set for the columns to allow resize but I can't resize. Here is the code, I add the data contents row by row...
1
by: jmprescott | last post by:
I have a stupid easy question (I hope). I have a paging DataGrid, and I'm trying to keep the row height the same throughout all the pages. I tried setting the height for the rows, which seemed to...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
1
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...
0
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...
0
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,...
0
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...

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.