ASP.NET Gridview Control FAQ: ขนาดของ GridView ใหญ่เกินไป

คำตอบ ASP.NET Gridview Control FAQ: ขนาดของ GridView ใหญ่เกินไป

ตอบทั้งหมด

  • 6 เมษายน 2555 6:23
    ผู้ดูแล
     
     คำตอบ

    ถ้า GridView control พยายามที่จะแสดงผลมากกว่าที่ column หรือ row จะรับได้ในหนึ่งหน้าเพจ
    อาจทำให้
    GridView control มีขนาดใหญ่เกินไป ซึ่งจะทำให้เปลี่ยนแปลงรูปแบบการแสดงผลของหน้าเพจ
    โดยเราสามารถแก้ปัญหานี้ได้โดยการเพิ่ม
    scroll bar ในแบบแนวนอน/แนวตั้ง
    ดังแสดงในตัวอย่างต่อไปนี้

    <divstyle="vertical-align:top; height:200px; width:100%; overflow:auto;">

    ฟอรัมที่เกี่ยวข้อง

    Need a scrollbar in the GridView control


    Supa Sethasiripong [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    • แก้ไขโดย supa_sModerator 6 เมษายน 2555 6:24
    • ทำเครื่องหมายเป็นคำตอบโดย supa_sModerator 9 เมษายน 2555 2:48
    •