way to make 2 GridViews line up

B

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/
 
S

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.
 

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,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top