Spread Windows Forms 12.0 Product Documentation
CellErrorTextChanged Event (FpSpread)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : CellErrorTextChanged Event
Occurs when the cell error text has changed.
Syntax
'Declaration
 
Public Event CellErrorTextChanged As CellErrorTextEventHandler
'Usage
 
Dim instance As FpSpread
Dim handler As CellErrorTextEventHandler
 
AddHandler instance.CellErrorTextChanged, handler
public event CellErrorTextEventHandler CellErrorTextChanged
Event Data

The event handler receives an argument of type CellErrorTextChangedEventArgs containing data related to this event. The following CellErrorTextChangedEventArgs properties provide information specific to this event.

PropertyDescription
Gets the column index.  
Gets the row index.  
Gets the SheetView object.  
Example
This example uses the CellErrorTextChanged event.
private void button1_Click(object sender, EventArgs e)
        {
            fpSpread1.ShowCellErrors = true;
            fpSpread1.Sheets[0].Cells[1, 1].Locked = true;
            fpSpread1.Sheets[0].SetCellErrorText(1, 1, "ErrorText");
        }
   
        private void fpSpread1_CellErrorTextChanged(object sender, FarPoint.Win.Spread.CellErrorTextChangedEventArgs e)
        {
            listBox1.Items.Add(e.ColumnIndex);
        }
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        fpSpread1.ShowCellErrors = True
        fpSpread1.Sheets(0).Cells(1, 1).Locked = True
        fpSpread1.Sheets(0).SetCellErrorText(1, 1, "ErrorText")
    End Sub

    Private Sub fpSpread1_CellErrorTextChanged(sender As Object, e As FarPoint.Win.Spread.CellErrorTextChangedEventArgs) Handles fpSpread1.CellErrorTextChanged
        ListBox1.Items.Add(e.ColumnIndex)
    End Sub
See Also