Solved

GridView Row Height

Posted on 2009-05-07
6
1,044 Views
Last Modified: 2012-05-06
I'm trying to set the row height for a databound GridView.  Can this not be done in design time?  My rows are 10 times as thick as they need to be.
0
Comment
Question by:NigelRocks
6 Comments
 
LVL 29

Accepted Solution

by:
QPR earned 125 total points
ID: 24332842
apparently you can set the row height by using the databound event

http://www.vbforums.com/showthread.php?t=504126
0
 
LVL 5

Assisted Solution

by:mrcoolcoder
mrcoolcoder earned 250 total points
ID: 24333013
I think what you want is this:

<asp:Gridview ..... >
........
       <RowStyle Height="20px" />
</asp:GridView>
0
 
LVL 1

Author Comment

by:NigelRocks
ID: 24338728
I've gone under "RowStyle" and "Height" and set the height to some miniscule amount.  In design time, it obviously affects the height of the rows.  However, in runtime the rows are still huge.  Neither of the above suggestions has worked.
0
 
LVL 22

Assisted Solution

by:prairiedog
prairiedog earned 125 total points
ID: 24339529
Sounds like there is a CSS file that causing the problem. Do you have a CSS file? Check your GirdView's CssClass property.
0
 
LVL 5

Assisted Solution

by:mrcoolcoder
mrcoolcoder earned 250 total points
ID: 24339545
.. or any of the columns with a control with height properties set.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 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