title: Draw only outer border for TableLayoutPanel Cells
body: <p>I am using the TableLayoutPanel for example if I have 3 rows and 5 columns. I want to draw only the outer border for the entire panel. By default the the panel provides CellBorderStyle which adds all side borders to all the cells available. Is there any way where we can set only outside borders? </p>
  
  <p>I have provided a sample code below.</p>
  
  <pre><code>    TableLayoutPanel tblPanel = new TableLayoutPanel;
      tblPanel.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single;
      Label lblName;
      TextBox txtName;
      Button btnAdd;
      int colCnt = 0;
      for(int rw =0; rw &lt; 3; rw++)
      {
              lblName = new Label();
              lblName.Name = "mylabel" + rw.ToString();
              tblPanel.Controls.Add(lblName, colCnt, rw);
              colCnt++;
  
              txtName = new TextBox();
              txtName.Name = "mytext" + rw.ToString();
              tblPanel.Controls.Add(txtName, colCnt, rw);
              colCnt++;
  
              btnAdd = new Button();
              btnAdd.Name = "mybutton" + rw.ToString();
              tblPanel.Controls.Add(btnAdd, colCnt, rw);
  
              colCnt = 0;
      }
  </code></pre>