zimcoder Level: VB Lord

 Registered: 27-10-2003 Posts: 225
|
Re: how to show images through datagrid ?
create a item template column in your datagrid and place an image control and set the src to the datasorce field that contains the retreived data for the image
<Columns>
<asp:TemplateColumn HeaderText="Image">
<ItemTemplate>
<asp:Image id="Image1" runat="server" Width="113px" Height="110px" ImageUrl="ThePathetoyourimage"></asp:Image>
</ItemTemplate>
</asp:TemplateColumn>
</Columns> |
[Edited by zimcoder on 14-09-2004 at 03:02 PM GMT]
____________________________
BrainBench ADO.NET and ASP.NET Certified Developer
 
|