Change Image Datagrid

C

csgraham74

Hi there,

i have creted a datagrid control to display images using the following
code.

<asp:DataGrid id="dg_Properties" runat="server"
HorizontalAlign="Center" Width="450px" AutoGenerateColumns="False"
ShowHeader="False">
<Columns><asp:BoundColumn Visible="False" DataField="Property_ID"
HeaderText="Property_ID"></asp:BoundColumn><asp:TemplateColumn><ItemTemplate><table
width="450px" style="WIDTH: 450px" border="0" cellspacing="1"
cellpadding="1">
<tr>
<td width="180"> <asp:label ForeColor="#808080" Font-Name="Arial"
Font-Size=10 runat=server text='<%#
trim(DataBinder.Eval(Container.DataItem,"RentBuy"))%>' ID="Label6"/>
<br> <asp:label ForeColor="#808080" Font-Name="Arial"
Font-Size=10 runat=server text='<%#
trim(DataBinder.Eval(Container.DataItem,"Property_Type"))%>'
ID="Label1"/>
<br> <asp:label ForeColor="#808080" Font-Name="Arial"
Font-Size=10 runat=server text='<%# "Beds: " &amp;
trim(DataBinder.Eval(Container.DataItem,"No_Bedrooms"))%>'
ID="Label2"/>
<br> <asp:label ForeColor="#808080" Font-Name="Arial"
Font-Size=10 runat=server text='<%# "Receps: " &amp;
trim(DataBinder.Eval(Container.DataItem,"No_Receptions"))%>'
ID="Label3"/>
<br> <br> <br> <br> <br> <asp:label ForeColor="#808080"
Font-Bold=True Font-Name="Arial" Font-Size=12 runat=server text='<%#
formatcurrency(trim(DataBinder.Eval(Container.DataItem, "Price")),0)%>'
ID="Label5"/></td>
<td width="14"> gg</td>
<td width="300" height="248" align="right" valign=top>
<asp:image ImageUrl='<%#
FormatURL(DataBinder.Eval(Container.DataItem, "Small_Image")) %>'
Width="300" Height="252" Runat=server ID="Image1"/></td>
<td width="109" o> <asp:image ImageUrl='<%#
FormatURL(DataBinder.Eval(Container.DataItem, "Large_Image1")) %>'
Width="75" Height="60" Runat=server ID="Image2"/>
<asp:image ImageUrl='<%#
FormatURL(DataBinder.Eval(Container.DataItem, "Large_Image2")) %>'
Width="75" Height="60" Runat=server ID="Image3"/>
<asp:image ImageUrl='<%#
FormatURL(DataBinder.Eval(Container.DataItem, "Large_Image3")) %>'
Width="75" Height="60" Runat=server ID="Image4"/>
<asp:image ImageUrl='<%#
FormatURL(DataBinder.Eval(Container.DataItem, "Large_Image4")) %>'
Width="75" Height="60" Runat=server ID="Image5"/>
</td> </tr><tr>
<td colspan="4" nowrap="true"> <asp:label ForeColor="#808080"
Font-Name="Arial" Font-Size=10 runat=server text='<%#
trim(DataBinder.Eval(Container.DataItem,"Description"))%>'
ID="description"/></td>
</tr>
</table>
</ItemTemplate></asp:TemplateColumn></Columns></asp:DataGrid>

What i want to do is to swap the image in the table in the grid when my
mouse goes over it??

is this possible ??

ive posted a few times now but no-one has responded.

thanks in advance

CG
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top