GrapeCity MultiRow Windows Forms Documentation
DataErrorContexts Enumeration


Represents the state of a data bound GcMultiRow control when a data error occurs.
Syntax
<FlagsAttribute()>
<FeatureAttribute(Name="DataError", Version="v5.0")>
Public Enum DataErrorContexts 
   Inherits System.Enum
Dim instance As DataErrorContexts
[Flags()]
[Feature(Name="DataError", Version="v5.0")]
public enum DataErrorContexts : System.Enum 
Members
MemberDescription
ClipboardContentA data error occurred when copying content to the Clipboard. This value indicates that the cell value could not be converted to a string.
CommitA data error occurred when committing changes to the data store. This value indicates that data entered in a cell could not be committed to the underlying data store.
CurrentCellChangeA data error occurred when the selection cursor moved to another cell. This value indicates that a user selected a cell when the previously selected cell had an error condition.
DisplayA data error occurred when displaying a cell that was populated by a data source. This value indicates that the value from the data source cannot be displayed by the cell, or a mapping that translates the value from the data source to the cell is missing.
FormattingA data error occurred when trying to format data that is either being sent to a data store, or being loaded from a data store. This value indicates that a change to a cell failed to format correctly. Either the new cell value needs to be corrected or the cell's formatting needs to change.
LeaveControlA data error occurred when the GcMultiRow control lost focus. This value indicates that the GcMultiRow control could not commit user changes after losing focus.
ParsingA data error occurred when parsing new data. This value indicates that the GcMultiRow control could not parse the new data that was entered by the user or loaded from the underlying data store.
PrintingA data error occurred when printing a cell that was populated by a data source. This value indicates that a value from the data source cannot be printed by the cell, or that a mapping that translates the value from the data source to the cell is missing.
RowDeletionA data error occurred when deleting a row. This value indicates that the underlying data store threw an exception when a data bound GcMultiRow control deleted a row.
ValueValidationA data error occurred when a cell's formatted value was out of the cell's value range.
Remarks
Members of the DataErrorContexts enumeration may be combined using the bitwise OR operator to represent the state of a data bound GcMultiRow control when a data error occurs. For example, if a user enters an invalid cell value (such as entering a name in a cell that requires a number) and then selects a different cell, GcMultiRow tries to commit the invalid cell value. When the commit fails, GcMultiRow raises a GcMultiRow.DataError event whose DataErrorEventArgs.Context property has Parsing, Commit and CurrentCellChange values.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Win.MultiRow.DataErrorContexts

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

Reference

GrapeCity.Win.MultiRow Namespace
DataError Event
Context Property

 

 


Copyright © GrapeCity, inc. All rights reserved.