0

hi

I want to change the width of column in Gridview bound field but it is not changing .

Code Is

<asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address">
                        <ItemStyle Width="500px" />
                        </asp:BoundField>

thanx

Edited by __avd: Added [code] tags. Do wrap your programming code blocks within [code] ... [/code] tags

6
Contributors
5
Replies
19
Views
6 Years
Discussion Span
Last Post by grovalmitchul
0

Have you tried?

<asp:GridView ID="dad" runat="server">
        <Columns>
            <asp:BoundField ItemStyle-Width="500px" />
        </Columns>
    </asp:GridView>
0

What croker10 posted, works for me.
If you're still having problems with that, try adding the columns/rows data dinamically on server side

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.