472,119 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

Spacing columns in DataGrid

I'm using a Data Grid and want to apply wider spacing between columns than
rows. As such, cellspacing / padding aren't any use to me.

I used to do this in html tables by simply adding columns with a single
point transparent .gif, set to a specific .pt width. This worked very well
for precise alignment.

I can't find an easy way to do this using a DataGrid. It is possible for me
to add columns (I'm doing this at run-time) but the darned thing requires me
to give a UNIQUE NAME to these columns which is really peeving me because
the columns have no other purpose but spacing. There's nothing unique to
name about them. What's worse, it displays the Column name in the header
row, which limits me to naming the columns with progressively longer strings
of blank strings, just to get a unique column name that won't display
anything when the table is rendered.. :c/

Surely there's a better way to do this!!

I'd appreciate any suggestions.

Regards,
Greg Linwood
SQL Server MVP
Nov 18 '05 #1
2 1583
Hi,

What about css that will change border-right-width and border-left-width
style attribute.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2
Thanks Natty - I'll check this option out today.

Regards,
Greg Linwood
SQL Server MVP

"Natty Gur" <na***@dao2com.com> wrote in message
news:uf**************@TK2MSFTNGP12.phx.gbl...
Hi,

What about css that will change border-right-width and border-left-width
style attribute.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Rick DeBay | last post: by
7 posts views Thread by Billy Jacobs | last post: by
2 posts views Thread by Kevin | last post: by
2 posts views Thread by Terry Olsen | last post: by
2 posts views Thread by CSL | last post: by
10 posts views Thread by phil-news-nospam | last post: by
reply views Thread by leo001 | last post: by

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.