DG Column Width vs Table Column Width

C

Carl Howarth

Hi,

I am wanting to display data in a datagrid with additional header rows above
it that categorise some of the main headers of the datagrid. I am therefore
creating a table above the datagrid using the same padding/spacing options.

The problem I am having is that when I define the width of a TD in my table
to be, say 300px, that should cover 3 columns of the datagrid, each at 100px
wide they are always misaligned and I have to start taking a pixel off here
and there within my header table. Also, the vertical space between the 2 is
usually larger than the cellspacing, which is livable though it would be
nice to know how to stop this!

Surely if I am defining the width of anything in pixels, it should be
displayed at the same width regardless of the object's type?!

Any advice would be gratefully received.

Thanks, Carl
(e-mail address removed)
 
E

Eliyahu Goldin

Carl,

When in comes to column width, the browser considers your instructions as
recommendations. You are not in control. Let the browser decide on the
column width and then resize the columns for the additional header in a
javascript.

Eliyahu
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top