How do I set the column width if I don’t show the header?

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
 
M

Manish Bafna

Hi,
Try setting width in itemstyle :
<ItemStyle ItemStyle-Width="175px"> </ItemStyle>
 

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

Staff online

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,088
Latest member
JeremyMedl

Latest Threads

Top