Liaoo
Liaoo

Reputation: 425

How do layout how items are shown in asp gridview?

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

Answers (2)

Manoj Purohit
Manoj Purohit

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

Related Questions