D
Dave
How do I set the column width if I don’t show the header?
Example:
I set the column width with the following code:
<asp:TemplateColumn>
<HeaderStyle Width="175px"></HeaderStyle>
<ItemStyle></ItemStyle>
<ItemTemplate>
…
Width of column is 175px
Then I turned off the header
<asp:datagrid ShowHeader="False" …
Width of column is 95px
Example:
I set the column width with the following code:
<asp:TemplateColumn>
<HeaderStyle Width="175px"></HeaderStyle>
<ItemStyle></ItemStyle>
<ItemTemplate>
…
Width of column is 175px
Then I turned off the header
<asp:datagrid ShowHeader="False" …
Width of column is 95px