menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridException - API Reference

    Show / Hide Table of Contents

    Class GridException

    Base class for exceptions thrown inside the grid.

    Inheritance
    System.Object
    System.Exception
    System.ApplicationException
    GridException
    GridUserCanceledException
    Implements
    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    Inherited Members
    System.Exception.GetBaseException()
    System.Exception.ToString()
    System.Exception.GetType()
    System.Exception.Data
    System.Exception.InnerException
    System.Exception.TargetSite
    System.Exception.StackTrace
    System.Exception.HelpLink
    System.Exception.Source
    System.Exception.HResult
    System.Exception.SerializeObjectState
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridException : ApplicationException, ISerializable, _Exception

    Constructors

    GridException()

    Initializes a new instance of the GridException class.

    Declaration
    public GridException()

    GridException(SerializationInfo, StreamingContext)

    Initializes a new GridException from a serialization stream.

    Declaration
    protected GridException(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    An object that holds all the data needed to serialize or de_serialize this instance.

    System.Runtime.Serialization.StreamingContext context

    Describes the source and destination of the serialized stream specified by info.

    GridException(String)

    Initializes a new instance of the GridException class with a specified error message.

    Declaration
    public GridException(string message)
    Parameters
    Type Name Description
    System.String message

    The message that describes the error.

    GridException(String, GridControlBase)

    Initializes a new instance of the GridException class with a specified error message and a reference to a grid.

    Declaration
    public GridException(string message, GridControlBase grid)
    Parameters
    Type Name Description
    System.String message

    The message that describes the error.

    GridControlBase grid

    A reference to a grid.

    GridException(String, GridControlBase, Exception)

    Initializes a new instance of the GridException class with a specified error message, a reference to a grid, and a reference to the inner exception that is the root cause of this exception.

    Declaration
    public GridException(string message, GridControlBase grid, Exception inner)
    Parameters
    Type Name Description
    System.String message

    The message that describes the error.

    GridControlBase grid

    A reference to a grid.

    System.Exception inner

    The exception that is the cause of the current exception. If the innerException parameter is not a NULL reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

    GridException(String, Exception)

    Initializes a new instance of the GridException class with a specified error message and a reference to the inner exception that is the root cause of this exception.

    Declaration
    public GridException(string message, Exception inner)
    Parameters
    Type Name Description
    System.String message

    The message that describes the error.

    System.Exception inner

    The exception that is the cause of the current exception. If the innerException parameter is not a NULL reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

    Properties

    Grid

    Gets a reference to a GridControlBase.

    Declaration
    public GridControlBase Grid { get; }
    Property Value
    Type Description
    GridControlBase

    Message

    Gets a message that represents the current exception.

    Declaration
    public override string Message { get; }
    Property Value
    Type Description
    System.String
    Overrides
    System.Exception.Message

    Methods

    GetObjectData(SerializationInfo, StreamingContext)

    When overridden in a derived class, sets the System.RunTime.Serialization.SerializationInfo with information about the exception.

    Declaration
    public override void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    The System.RunTime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.

    System.Runtime.Serialization.StreamingContext context

    The System.RunTime.Serialization.StreamingContext that contains contextual information about the source or destination.

    Overrides
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

    Implements

    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved