ComponentOne Preview Classic for WinForms: Preview Classic for WinForms Task-Based Help > Hiding Table Borders

Hiding Table Borders

To hide table borders, set the AllEmpty and Empty properties to True. Add the following code to the Form_Load event:

      Visual Basic

' Hide the table border.

table.Style.Borders.AllEmpty = True

 

' Hide the horizontal cell borders.

table.StyleTableCell.BorderTableHorz.Empty = True

 

' Hide the vertical cell borders.

table.StyleTableCell.BorderTableVert.Empty = True

      C#

// Hide the table border.

table.Style.Borders.AllEmpty = true;

 

// Hide the horizontal cell borders.

table.StyleTableCell.BorderTableHorz.Empty = true;

 

// Hide the vertical cell borders.

table.StyleTableCell.BorderTableVert.Empty = true;

This topic illustrates the following:

The table borders are not visible.

 


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.