We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,803 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

how to change width of column in Gridview Bound field

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

2
Contributors
1
Reply
3 Hours
Discussion Span
2 Years Ago
Last Updated
3
Views
sbglobal
Light Poster
28 posts since Aug 2010
Reputation Points: 7
Solved Threads: 0
Skill Endorsements: 0

Have you tried?

<asp:GridView ID="dad" runat="server">
        <Columns>
            <asp:BoundField ItemStyle-Width="500px" />
        </Columns>
    </asp:GridView>
croker10
Junior Poster in Training
68 posts since Jun 2010
Reputation Points: 10
Solved Threads: 6
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0535 seconds using 2.65MB