Hi, I don't know if this is the right place to post but I'm not getting any answers in the "beginner" forums and I reall need a fix.
my problem is that I can't set any style features in my template columns in a datagrid. the databoud columns are fine but the templates are just default and consequently totally difference in apearance. Specifically what I want to do is set the width of column, the font size, and the wrap. I have tried putting these in the html as I do for databoud columns but it has no effect. here is some code
<asp:TemplateColumn HeaderText="Slot 1" ItemStyle-Font-Size="10" ItemStyle-Width ="105" ItemStyle-Wrap ="False">
<ItemStyle Width="150px"></ItemStyle>
<ItemTemplate>
<table border="0">
<tr>
<td align="left">Trainer</td>
<td><%# databinder.eval(container.dataitem,"s1tr")%></td>
</tr>
<tr>
<td align="left">Client</td>
<td><%# databinder.eval(container.dataitem,"s1cl")%></td>
</tr>
</table>
</ItemTemplate>
<EditItemTemplate>
<table border="0">
<tr>
<td align="left">Trainer</td>
<td>
<asp:dropdownlist runat = "server" id="trainers1" datavaluefield ="contname" DataTextField = "contname" DataSource ="<%#trainerlist%>"/></td>
</tr>
<tr>
<td align="left">Client</td>
<td>
<asp:DropDownList Runat = "server" id = "clients1" DataValueField = "contname" DataTextField = "contname" DataSource = "<%#clientlist%>"/></td>
</tr>
</table>
</EditItemTemplate>
</asp:TemplateColumn>
Any help would be greatly appreciated.
Thanks
Raif