Very interesting question! Basically what you need is an inverted
table, with column headers in the first column and two columns in
which each row is a comparison of the type of attribute defined by the
column header. In other words, you need a table with that repeats
horizontally instead of vertically.

There can be many possibilities to explore:

1. One way may be to transpose your Dataset using the method
illustrated here: <http://www.codeproject.com/KB/database/
Vertical_rows_in_Datagrid.aspx>

2. Use a container such as a GridView with a nested DataList that has
RepeatDirection set to Horizontal and RepeatColumns set to 2.

3. If you're on ASP.NET 3.5, it may be helpful to use the flexible
rendering offered by the ListView control.

4. Flip your Dataset and then use a Repeater for customized rendering.
In my view, this is the best option.

I think others may be able to add to this with better ideas.

On May 14, 5:30 pm, Drum2001 <[email protected]> wrote:
> Hello All,
>
> I am tring to create a datagrid that allows the user to "compare" two
> items.  I don't need any calculations performed to actually compare
> the records, but more align the results of the two items next to each
> other.
>
> See website for example (You may have to refresh the page to actually
> get it to load):
>
> http://www.bestbuy.com/site/olspage.jsp?id=cat13504&type=page&pageIde...
>
> I tried to google how to do this, but I cannot seem to find any
> results.  However, I don't know if there is an official technical term
> to look for either.
>
> I am using Visual Studio.Net 2008 with VB for coding.
>
> Thank you for any suggestions!
>
> Brad

Reply via email to