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


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
ColumnIndexGets the column index.  
RowIndexGets the row index.  
SheetViewGets 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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

FpSpread Class
FpSpread Members

 

 


Copyright © GrapeCity, inc. All rights reserved.