cooldudeattitud
Apr 27th, 2004, 07:59 AM
<Asp:datagrid Allowpaging="true" Page-Index="5">
<columns>
<asp:TemplateColumn>
<ItemTemplate>
<Img src="sam.gif" width="200" height="150" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<table>
<tr><td><%#Container.DataItem("ID")%></td></tr>
<tr><td><%#Container.DataItem("Name")%></td></tr>
</table>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
Hi, I was trying to do this and I get the image at some distance from the borders....All I want is how do I fit the image or text to the datagrid cell....Ur help will be appreciated....But there are some white spaces coming between the borders of the cell and image/text in the datagrid.....Any kind of help will be appreciated...
<columns>
<asp:TemplateColumn>
<ItemTemplate>
<Img src="sam.gif" width="200" height="150" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<table>
<tr><td><%#Container.DataItem("ID")%></td></tr>
<tr><td><%#Container.DataItem("Name")%></td></tr>
</table>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
Hi, I was trying to do this and I get the image at some distance from the borders....All I want is how do I fit the image or text to the datagrid cell....Ur help will be appreciated....But there are some white spaces coming between the borders of the cell and image/text in the datagrid.....Any kind of help will be appreciated...