Posted on 2010-11-28
I put GridView in div.
I set <div id="div1" style="overflow:scroll; height:auto;">, the grid height is auto. But for a long grid list, I want to set limited display height. So I set <div id="div1" style="overflow:scroll; height:200px;">, but it display 200px height even there's only one record.
Is there a easy way like maximum row to achive both purpose? Such as height limit for long list row and auto for short list row. How can I achieve this?