Spread Windows Forms 11.0 Product Documentation
SetCellErrorText Method (SheetView)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SetCellErrorText Method
Row index of cell
Column index of cell
Error text
Sets the error text for a specified cell.
Syntax
'Declaration
 
Public Sub SetCellErrorText( _
   ByVal rowIndex As Integer, _
   ByVal columnIndex As Integer, _
   ByVal errorText As String _
) 
'Usage
 
Dim instance As SheetView
Dim rowIndex As Integer
Dim columnIndex As Integer
Dim errorText As String
 
instance.SetCellErrorText(rowIndex, columnIndex, errorText)
public void SetCellErrorText( 
   int rowIndex,
   int columnIndex,
   string errorText
)

Parameters

rowIndex
Row index of cell
columnIndex
Column index of cell
errorText
Error text
Example
This example uses the SetCellErrorText method.
fpSpread1.ShowCellErrors = true;
fpSpread1.Sheets[0].Cells[1, 1].Locked = true;
fpSpread1.Sheets[0].SetCellErrorText(1, 1, "ErrorText");
FpSpread1.ShowCellErrors = True
FpSpread1.Sheets(0).Cells(1, 1).Locked = True
FpSpread1.Sheets(0).SetCellErrorText(1, 1, "ErrorText")
See Also

Reference

SheetView Class
SheetView Members