How to hide(block) the row(s) space through code behind class.

e.g
My application has three rows , each rows contains the panels.
i want to display First & Third row , second row space should be hidden (same like a display: block in WebApp).

My Code:

           
           
                       
           
       

       
           
           
                       
           
       

       






Thanks 'n Advance :)