BoundColumn

T

tshad

I want to set the size of a BoundColumn, but can't seem to find a property
for that.

Is there way to say I want the column to be 80px or 20%?

Thanks,

Tom.
 
M

Marina

Set the Width property to the width you want. I don't think it can work on
percentages.
 
T

tshad

Marina said:
Set the Width property to the width you want. I don't think it can work on
percentages.

I tried that already and got the following error:

Parser Error Message: Type 'System.Web.UI.WebControls.BoundColumn' does not
have a property named 'Width'.

My boundcolumn statement looks like:

<asp:BoundColumn DataField="DatePosted"
HeaderText="Date Posted"
ReadOnly="true"
Visible="True"
Width="50"
SortExpression="DatePosted"/>

I would assume there is some way to handle this.

Thanks,

Tom
 
M

Marina

Sorry, I was thinking of something else when I was writing this response.

You can set the Width property of the ItemStyle. Try 'ItemStyle-Width' -
that's what pops up in vs.net, so I'm assuming you can set it that way. It
should support percentage widths.
 

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,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top