Spread Windows Forms 7.0 Product Documentation
SetCellErrorText Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SetCellErrorText Method


rowIndex
Row index of cell
columnIndex
Column index of cell
errorText
Error text

Glossary Item Box

Sets the error text for a specified cell.

Syntax

Visual Basic (Declaration) 
Public Sub SetCellErrorText( _
   ByVal rowIndex As Integer, _
   ByVal columnIndex As Integer, _
   ByVal errorText As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim rowIndex As Integer
Dim columnIndex As Integer
Dim errorText As String
 
instance.SetCellErrorText(rowIndex, columnIndex, errorText)
C# 
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.
C#Copy Code
fpSpread1.ShowCellErrors = true;
fpSpread1.Sheets[0].Cells[1, 1].Locked = true;
fpSpread1.Sheets[0].SetCellErrorText(1, 1, "ErrorText");
VB.NETCopy Code
FpSpread1.ShowCellErrors = True
FpSpread1.Sheets(0).Cells(1, 1).Locked = True
FpSpread1.Sheets(0).SetCellErrorText(1, 1, "ErrorText")

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.