P
Peter
Hi All
I currently use the following codes to display images from a DataGrid but it
can only display 1 per line. May I know whether how can I display multiple
pics(records) per line in the DataGrid ? Or if DataGrid is not the best way
to do so, any other better methods to do the task ?
<aspataGrid id="myGrid" runat="server" CellPadding="2" BorderWidth="0px"
Width="100%" CssClass="cntltext" DataKeyField="Filename"
AutoGenerateColumes="False" AutoGenerateColumns="False">
<HeaderStyle font-bold="True" forecolor="PaleGoldenrod"
backcolor="MidnightBlue"></HeaderStyle>
<AlternatingItemStyle backcolor="#D0D0FF"></AlternatingItemStyle>
<Columns>
<asp:TemplateColumn HeaderText="Image View">
<ItemTemplate>
<img src="<%# DataBinder.Eval(Container.DataItem,"ImageFullPath") %>"/
width="100" height="75" >
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</aspataGrid>
Thanks
Peter
I currently use the following codes to display images from a DataGrid but it
can only display 1 per line. May I know whether how can I display multiple
pics(records) per line in the DataGrid ? Or if DataGrid is not the best way
to do so, any other better methods to do the task ?
<aspataGrid id="myGrid" runat="server" CellPadding="2" BorderWidth="0px"
Width="100%" CssClass="cntltext" DataKeyField="Filename"
AutoGenerateColumes="False" AutoGenerateColumns="False">
<HeaderStyle font-bold="True" forecolor="PaleGoldenrod"
backcolor="MidnightBlue"></HeaderStyle>
<AlternatingItemStyle backcolor="#D0D0FF"></AlternatingItemStyle>
<Columns>
<asp:TemplateColumn HeaderText="Image View">
<ItemTemplate>
<img src="<%# DataBinder.Eval(Container.DataItem,"ImageFullPath") %>"/
width="100" height="75" >
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</aspataGrid>
Thanks
Peter