VB Code:
  1. <Asp:datagrid Allowpaging="true" Page-Index="5">
  2. <columns>
  3. <asp:TemplateColumn>
  4. <ItemTemplate>
  5. <Img src="sam.gif" width="200" height="150" />
  6. </ItemTemplate>
  7. </asp:TemplateColumn>
  8. <asp:TemplateColumn>
  9. <ItemTemplate>
  10. <table>
  11. <tr><td><%#Container.DataItem("ID")%></td></tr>
  12. <tr><td><%#Container.DataItem("Name")%></td></tr>
  13. </table>
  14. </ItemTemplate>
  15. </asp:TemplateColumn>
  16. </Columns>
  17. </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...