Home All Groups Group Topic Archive Search About
Author
23 Oct 2006 8:05 PM
David Thielen
Hi all;

I have a couple of pages where I have a GridView, some text, then a secong
GridView. Both GridViews display the same type of data (different selects)
and I would like their columns to line up. Is there any way to do this other
than forcing the width on each?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Author
24 Oct 2006 4:04 AM
Brennan Stehling
If the data is in separate GridViews the data will be in separate HTML
tables.  That will cause them to behave independently unless you do set
their widths to match specifically.

What you might want to try is placing the data together in the same
GridView and try to separate the 2 groups, but that could be hard to
do, especially if you allow for sorting.

Look for the ImportRow method to load the DataRows from another
DataTable into the shared DataTable.

Brennan Stehling
http://brennan.offwhite.net/blog/

David Thielen wrote:
Show quoteHide quote
> Hi all;
>
> I have a couple of pages where I have a GridView, some text, then a secong
> GridView. Both GridViews display the same type of data (different selects)
> and I would like their columns to line up. Is there any way to do this other
> than forcing the width on each?
>
> --
> thanks - dave
> david_at_windward_dot_net
> http://www.windwardreports.com
>
> Cubicle Wars - http://www.windwardreports.com/film.htm
Author
24 Oct 2006 6:17 AM
Steven Cheng[MSFT]
Hello Dave,

As for the multi GridView's column alignment, I'm afraid we haven't any
better means other than use Column width the control the size of each
column of GridView since different Gridview is rendered in different html
<table> element and there is no standard means to align two separate html
table's table columns in html page.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
Author
24 Oct 2006 2:57 PM
David Thielen
That's what I thought - but figured it never hurts to ask.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




Show quoteHide quote
"Steven Cheng[MSFT]" wrote:

> Hello Dave,
>
> As for the multi GridView's column alignment, I'm afraid we haven't any
> better means other than use Column width the control the size of each
> column of GridView since different Gridview is rendered in different html
> <table> element and there is no standard means to align two separate html
> table's table columns in html page.
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>