Solved

Row Height in GridView?

Posted on 2008-06-11
2
410 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

820 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