Solved

Row Height in GridView?

Posted on 2008-06-11
2
407 Views
Last Modified: 2013-11-27
I am very new to Visual Studio and I am learning on the fly.  I have created a simple web application that has a GridView in the 'Content' portion of my web application (using DIV commands and CSS).  I would like to control the row height in my GridView.  Right it is a fixed height and takes up too much room on my web page.  Is there an easy way to do this?

Thank you,
RT
0
Comment
Question by:northstarneuro
2 Comments
 
LVL 48

Accepted Solution

by:
jpaulino earned 125 total points
ID: 21763059
You can control the Height in the ItemStyle .

Ex:
<asp:BoundField DataField="MyField" HeaderText="Field" SortExpression="Field">

      <ItemStyle Height="50px" />

</asp:BoundField>

Open in new window

0
 

Author Closing Comment

by:northstarneuro
ID: 31466287
This was perfect.  Thank you, RT
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now