Datagrid Template Column size control

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
 
A

Annie

Guys,

I sorted out this issue my self ... I created a value in my .css file for
..gridTable and set the values there.
It works great now.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top