Home All Groups Group Topic Archive Search About

_I_don’t_show_the_header?

Author
8 May 2007 4:11 PM
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

--
Thanks in advance,
Dave

Author
9 May 2007 9:18 AM
Manish Bafna
Hi,
Try setting width in itemstyle :
<ItemStyle ItemStyle-Width="175px"> </ItemStyle>
--
If my answer helped you,then please do press Yes below.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



Show quoteHide quote
"Dave" wrote:

> 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
>
> --
> Thanks in advance,
> Dave