Solved

Row Height in GridView?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

920 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

13 Experts available now in Live!

Get 1:1 Help Now