Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

GridView Height

Posted on 2010-11-28
3
Medium Priority
?
579 Views
Last Modified: 2012-05-10
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?

Thanks.
0
Comment
Question by:minglelinch
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
gingermoleman earned 2000 total points
ID: 34227443
Hi,

Do you mean limit the number records returned?
In the gridview its PageSize="4" if you were to only want 4 records.
probably wise to also have AllowPaging="True" in there so you can at least get to extra rows.

GMM
0
 
LVL 1

Author Comment

by:minglelinch
ID: 34238865
Thank you. That's what I want.
0
 
LVL 5

Expert Comment

by:gingermoleman
ID: 34238887
welcome.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question