A
Annie
Hello guys,
I have a datagrid with 2 Template columns. 1 colum which has all the data in
the form of a HTML table and other which has
an image control and shows the image there. I only show the detail of 1 item
there. However, the height of the datagird is much
bigger than I want it to be. It shows the details in the top and the bottom
all blank. I set the width and hieght to fix sizes but it
doesn't work.
How to control the size of datagrid with customized columns?
I have something lik this
..
..
..
<tr>
<td align="left"><b>Colour Screen</b></td>
<td><%# DataBinder.Eval(Container.DataItem, "ModelColour") %></td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Image">
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle>
<ItemTemplate>
<asp:Image ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ModelImage")
%>' runat="server">
</asp:Image>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
TIA
I have a datagrid with 2 Template columns. 1 colum which has all the data in
the form of a HTML table and other which has
an image control and shows the image there. I only show the detail of 1 item
there. However, the height of the datagird is much
bigger than I want it to be. It shows the details in the top and the bottom
all blank. I set the width and hieght to fix sizes but it
doesn't work.
How to control the size of datagrid with customized columns?
I have something lik this
..
..
..
<tr>
<td align="left"><b>Colour Screen</b></td>
<td><%# DataBinder.Eval(Container.DataItem, "ModelColour") %></td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Image">
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle>
<ItemTemplate>
<asp:Image ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ModelImage")
%>' runat="server">
</asp:Image>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
TIA