locked
empty gridviews leaves space on page RRS feed

  • Question

  • I have several gridviews that display one after the other on a page.  When a gridview is empty, it does not display on the page, but there is an obvious space left on the page in that spot.  How do I get rid of that space?  Still learning this stuff, so my apologies if this is an obvioius solution.
    • Moved by Alan_chen Thursday, August 26, 2010 9:16 AM (From:Visual C# General)
    Thursday, August 26, 2010 12:14 AM

Answers

  • figured it out!!

    in code behind, i used

    if(grdview.rows.count==0)

    {

    this.grdview.Visible=false;

    }

    • Marked as answer by bukkybu Thursday, August 26, 2010 1:42 PM
    Thursday, August 26, 2010 1:41 PM