Spread Windows Forms 6.0 Product Documentation
EditError Enumeration
Example  See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace : EditError Enumeration


Glossary Item Box

Specifies the possible editor messages based on user action.

Syntax

Visual Basic (Declaration) 
Public Enum EditError 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As EditError
C# 
public enum EditError : System.Enum 

Members

MemberDescription
CellIsLocked[1] Indicates the user attempted to interact with a locked cell.
ColumnAndRowRestrictedIndicates the user attempted to move the focus to a cell that is located in both a restricted row and column.
ColumnRestrictedIndicates the user attempted to move the focus to a restricted column.
InvalidCellDataIndicates the current inputing value in editor is invalid
InvalidCellFormulaIndicates the user typed an invalid formula into a cell (sent when the user left the cell).
InvalidCellValueIndicates the user typed invalid data into a cell (sent when the user left the cell).
InvalidHyperlinkIndicates the user clicked a link that is invalid.
RowRestrictedIndicates the user attempted to move the focus to a restricted row.
TypedInCheckboxIndicates the user attempted to type in a check box cell.

Remarks

This method provides possible error messages that can be displayed based on user action.

Example

C#Copy Code
private void fpSpread1EditError(object sender, FarPoint.Win.Spread.EditErrorEventArgs e)
{
    if(e.EditError == FarPoint.Win.Spread.EditError.CellIsLocked)
    {
        e.View.Sheets[0].Cells[e.Row, e.Column].BackColor = Color.Red;
    }
}
Visual BasicCopy Code
Private Sub FpSpread1EditError(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.EditErrorEventArgs) Handles FpSpread1.EditError
    If e.EditError = FarPoint.Win.Spread.EditError.CellIsLocked Then
        e.View.Sheets(0).Cells(e.Row, e.Column).BackColor = Color.Red
    End If
End Sub

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.EditError

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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