GrapeCity.Xaml.SpreadSheet.Data
ShowFooter Property
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > SheetTable Class : ShowFooter Property
Gets or sets a value that indicates whether to display a footer.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property ShowFooter As Boolean
'Usage
 
Dim instance As SheetTable
Dim value As Boolean
 
instance.ShowFooter = value
 
value = instance.ShowFooter
[DefaultValue()]
public bool ShowFooter {get; set;}
Example
This example sets the ShowFooter property.
gcSpreadSheet1.Sheets[0].Cells[1, 1].Text = "Last Name";
gcSpreadSheet1.Sheets[0].Cells[1, 2].Text = "Value";
gcSpreadSheet1.Sheets[0].Cells[2, 1].Text = "Smith";
gcSpreadSheet1.Sheets[0].Cells[2, 2].Value = 50;
gcSpreadSheet1.Sheets[0].Cells[3, 1].Text = "Vil";
gcSpreadSheet1.Sheets[0].Cells[3, 2].Value = 10;
gcSpreadSheet1.Sheets[0].Cells[4, 1].Text = "Press";
gcSpreadSheet1.Sheets[0].Cells[4, 2].Value = 78;
gcSpreadSheet1.Sheets[0].AddTable("Table1", 1, 1, 5, 2);  

GrapeCity.Xaml.SpreadSheet.Data.SheetTable ntable = new GrapeCity.Xaml.SpreadSheet.Data.SheetTable();
ntable = gcSpreadSheet1.Sheets[0].FindTable("Table1");
ntable.ShowFooter = true;
ntable.HighlightFirstColumn = true;
gcSpreadSheet1.Sheets[0].MoveTable(ntable, 3, 3);
GcSpreadSheet1.Sheets(0).Cells(1, 1).Text = "Last Name"
GcSpreadSheet1.Sheets(0).Cells(1, 2).Text = "Value"
GcSpreadSheet1.Sheets(0).Cells(2, 1).Text = "Smith"
GcSpreadSheet1.Sheets(0).Cells(2, 2).Value = 50
GcSpreadSheet1.Sheets(0).Cells(3, 1).Text = "Vil"
GcSpreadSheet1.Sheets(0).Cells(3, 2).Value = 10
GcSpreadSheet1.Sheets(0).Cells(4, 1).Text = "Press"
GcSpreadSheet1.Sheets(0).Cells(4, 2).Value = 78
GcSpreadSheet1.Sheets(0).AddTable("Table1", 1, 1, 5, 2)

Dim ntable As New GrapeCity.Xaml.SpreadSheet.Data.SheetTable()
ntable = GcSpreadSheet1.Sheets(0).FindTable("Table1")
ntable.ShowFooter = True
ntable.HighlightFirstColumn = True
GcSpreadSheet1.Sheets(0).MoveTable(ntable, 3, 3)
See Also

Reference

SheetTable Class
SheetTable Members