weird resizing of label

Posted on 2005-04-07
Last Modified: 2010-04-07

How come the datagrid moves down when we place a text value in a label ?

l                           l
l          textbox       l
l             label       l                    
l          datagrid     l  <-----------------the datagrid moves one step down when i place "asdfg" to label
l                           l                          initially the label has no value (i've set label to font size 1 by click the object)
l                           l

Please kindly guide me to stop the datagrid from moving.

Question by:lynnton
    LVL 8

    Accepted Solution

    When a label has no contents, it has no height.  Once it has contents it has a height.  What I suggest is that you use a table, and set the height of the row, therefore the height will not be adjusted once contents are placed in the label.
    LVL 1

    Author Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
    In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    761 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

    11 Experts available now in Live!

    Get 1:1 Help Now