F
Frenchie
Hi,
I would like to find a way to displys 2 columns into a gridview as 1
column with 2 rows for each row in my database.
The first row would be a short description of the image that is in the
row below.
At the moment I have a column with a picture in it then a second column
next to it with the description.
Here is the code that I use:
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
AllowPaging="True" CellPadding="2">
<Columns>
<asp:ImageField HeaderText="picture"
DataImageUrlField="URL" DataImageUrlFormatString="{0}">
<ControlStyle Height="240px" Width="352px" />
</asp:ImageField>
<asp:BoundField DataField="Description"
HeaderText="Description" SortExpression="Description" />
</Columns>
</asp:GridView>
Thanks in advance for the help.
I would like to find a way to displys 2 columns into a gridview as 1
column with 2 rows for each row in my database.
The first row would be a short description of the image that is in the
row below.
At the moment I have a column with a picture in it then a second column
next to it with the description.
Here is the code that I use:
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
AllowPaging="True" CellPadding="2">
<Columns>
<asp:ImageField HeaderText="picture"
DataImageUrlField="URL" DataImageUrlFormatString="{0}">
<ControlStyle Height="240px" Width="352px" />
</asp:ImageField>
<asp:BoundField DataField="Description"
HeaderText="Description" SortExpression="Description" />
</Columns>
</asp:GridView>
Thanks in advance for the help.