Row Height in GridView?

Posted on 2008-06-11
Medium Priority
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,
Question by:northstarneuro
LVL 48

Accepted Solution

Jorge Paulino earned 500 total points
ID: 21763059
You can control the Height in the ItemStyle .

<asp:BoundField DataField="MyField" HeaderText="Field" SortExpression="Field">
      <ItemStyle Height="50px" />

Open in new window


Author Closing Comment

ID: 31466287
This was perfect.  Thank you, RT

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
SingleRun is a tool that ensures that only one instance of an application is started, running it again brings the application to focus.
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…
Through the video, you can check the migration process of Outlook PST file to PDF. Kernel for Outlook to PDF tool can convert Outlook emails with all attributes like Subject, To, From, Cc, Bcc and other folders such as Inbox, Outbox, Sent Items, Jun…

622 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