This works in a DetailsView so I think it should in a GridView:
<asp:BoundField DataField="YourFieldName" HeaderText="Your Field
Label" SortExpression="YourFieldName" >
<ControlStyle Width="500px" />
<ItemStyle Width="500px" />
</asp:BoundField>
> Why does it seem like is impossible to set the width of a BoundField
> in a GridView. I've tried all sorts of different way to set the width
[quoted text clipped - 3 lines]
> Can anyone tell me now to set the column width of a GridView in the
> aspx file code?
mohaaron@gmail.com - 12 Feb 2008 19:43 GMT
I just tried the following and it doesn't work.
<asp:BoundField DataField="Comments" HeaderText="Comments"
SortExpression="Comments" >
<ControlStyle Width="500px" />
<ItemStyle Width="500px" />
</asp:BoundField>
On Feb 12, 11:20 am, "Paul Shapiro" <p...@hideme.broadwayData.com>
wrote:
> This works in a DetailsView so I think it should in a GridView:
> <asp:BoundField DataField="YourFieldName" HeaderText="Your Field
[quoted text clipped - 16 lines]
>
> - Show quoted text -