The problem page: http:// www . webeerlieve . com/ShowThread.aspx?ID=521
If you put your browser into 1024×768, you will see the GridView table will extend past the div “postbody”. I don’t know how to stop this from happening.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because of the nature of a table, there is a minimum width is cannot drop below and that width is determined by the width of the items within each table row. I am assuming you have already specified a width to the GridView control and it is still overflowing because the data is too large. You can try adding the GridView into another div and specifying css properties to that div to control overflow, like this:
Now, if your GridView exceeds the dimensions of the containing div, the div will remain static in size and any overflow will prompt scrollbars to appear.