1.11M Members

how to change width of column in Gridview Bound field

 
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

 
0
 

Have you tried?

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

didn't work

 
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

You
Post:
Start New Discussion
View similar articles that have also been tagged: