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


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetRowErrorText Method
Row index
Gets the row error text.
Syntax
'Declaration
 
Public Function GetRowErrorText( _
   ByVal rowIndex As Integer _
) As String
'Usage
 
Dim instance As SheetView
Dim rowIndex As Integer
Dim value As String
 
value = instance.GetRowErrorText(rowIndex)
public string GetRowErrorText( 
   int rowIndex
)

Parameters

rowIndex
Row index

Return Value

Error text of row (string.Empty if there is no error text)
Example
This example uses the GetRowErrorText method.
FarPoint.Win.Spread.SpreadView sv = fpSpread1.GetRootWorkbook();
sv.ShowRowErrors = true;
sv.Sheets[0].Rows[0].ErrorText = "RowError";
sv.Sheets[0].Rows[0].Locked = true;

string text;
text = fpSpread1.ActiveSheet.GetRowErrorText(0);
listBox1.Items.Add(text.ToString());
Dim sv As FarPoint.Win.Spread.SpreadView
sv = fpSpread1.GetRootWorkbook()
sv.ShowRowErrors = True
sv.Sheets(0).Rows(0).ErrorText = "RowError"
sv.Sheets(0).Rows(0).Locked = True

Dim text As String
text = fpSpread1.ActiveSheet.GetRowErrorText(0)
ListBox1.Items.Add(Text.ToString())
See Also

Reference

SheetView Class
SheetView Members