Start New Discussion within our Web Development Community


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" />


Have you tried?

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

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 article has been dead for over six months. Start a new discussion instead.