Take the 2-minute tour ×

I would like to display the list items using DataView WebPart and I am successful so far. But I would like to show the items in two columns for each row, instead of one columns per one row. How can i achieve this.

                <xsl:attribute name="class">ms-alternating</xsl:attribute>
            <xsl:variable name="ImageURL">
  <xsl:value-of select="@ImageURL" /> 

            <td class="ms-vb">

                <img alt="" src="{$ImageURL}"  />

I would like to show the items from a list in two columns and the table should be increased dynamically based on the number of items. Can someone guide me on how to achieve this.

share|improve this question
add comment

1 Answer

Actually you can achieve this more easily with Item Lister Web Part. Try to check that out.

share|improve this answer
add comment

Your Answer


