Spread Windows Forms 12.0 Product Documentation
TableChanged Event
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : TableChanged Event
Occurs when the table changes.
Syntax
'Declaration
 
Public Event TableChanged As TableChangedEventHandler
'Usage
 
Dim instance As FpSpread
Dim handler As TableChangedEventHandler
 
AddHandler instance.TableChanged, handler
public event TableChangedEventHandler TableChanged
Example
This example uses the TableChanged event.
fpSpread1.Sheets[0].Cells[1, 1].Text = "Last Name";
fpSpread1.Sheets[0].Cells[1, 2].Text = "Value";
fpSpread1.Sheets[0].Cells[2, 1].Text = "Smith";
fpSpread1.Sheets[0].Cells[2, 2].Value = 50;
fpSpread1.Sheets[0].Cells[3, 1].Text = "Vil";
fpSpread1.Sheets[0].Cells[3, 2].Value = 10;
fpSpread1.Sheets[0].Cells[4, 1].Text = "Press";
fpSpread1.Sheets[0].Cells[4, 2].Value = 78;
FarPoint.Win.Spread.TableView table = fpSpread1.Sheets[0].AddTable("table", 1, 1, 5, 2);
table.TotalRowVisible = true;

private void fpSpread1_TableChanged(object sender, FarPoint.Win.Spread.Model.TableChangedEventArgs e)
{
    listBox1.Items.Add(e.Table.TotalRowVisible);            
}
FpSpread1.Sheets(0).Cells(1, 1).Text = "Last Name"
FpSpread1.Sheets(0).Cells(1, 2).Text = "Value"
FpSpread1.Sheets(0).Cells(2, 1).Text = "Smith"
FpSpread1.Sheets(0).Cells(2, 2).Value = 50
FpSpread1.Sheets(0).Cells(3, 1).Text = "Vil"
FpSpread1.Sheets(0).Cells(3, 2).Value = 10
FpSpread1.Sheets(0).Cells(4, 1).Text = "Press"
FpSpread1.Sheets(0).Cells(4, 2).Value = 78
Dim table As FarPoint.Win.Spread.TableView = FpSpread1.Sheets(0).AddTable("table", 1, 1, 5, 2)
table.TotalRowVisible = True

Private Sub FpSpread1_TableChanged(sender As Object, e As FarPoint.Win.Spread.Model.TableChangedEventArgs) Handles FpSpread1.TableChanged
    ListBox1.Items.Add(e.Table.TotalRowVisible)
End Sub
See Also

Reference

FpSpread Class
FpSpread Members