Reputation: 425
I'd like to change the way gridview shows its items according to the format below.
<img1> <img2> <img3> <img4>
<caption1> <caption1> <caption1> <caption1>
<img5> <img6> <img7> <img8>
<caption5> <caption6> <caption7> <caption8>
and so on...
Upvotes: 1
Views: 506
Reputation: 1063
You can use custom formatting options with the DataList or Repeater controls instead of a GridView. Check these examples for help :
http://csharpdotnetfreak.blogspot.com/2009/05/aspnet-creating-shopping-cart-example.html.
Upvotes: 2
Reputation: 3453
Set AutoGenerateColumn
property of gridview to false and then use <asp:TemplateField><ItemTemplate>
under <Columns>
section to add controls the way you like.
Upvotes: 0