WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IGridDataObjectConsumer

    Show / Hide Table of Contents

    Interface IGridDataObjectConsumer

    Implement this interface in order to participate as a possible DataObject consumer. See RegisterDataObjectConsumer(IGridDataObjectConsumer).

    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public interface IGridDataObjectConsumer

    Properties

    Name

    Gets the name of the DataObject consumer.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    System.String

    Methods

    DetermineRowColCount(IDataObject)

    Queries the dimension in rows and columns of the data object.

    Declaration
    Size DetermineRowColCount(IDataObject dataObject)
    Parameters
    Type Name Description
    System.Windows.Forms.IDataObject dataObject

    The data object.

    Returns
    Type Description
    System.Drawing.Size

    returns size

    DropAtRowCol(IDataObject, Int32, Int32)

    Paste the contents of the data object at the specified cell coordinates.

    Declaration
    bool DropAtRowCol(IDataObject dataObject, int rowIndex, int colIndex)
    Parameters
    Type Name Description
    System.Windows.Forms.IDataObject dataObject

    Provides data to be consumed.

    System.Int32 rowIndex

    The row index.

    System.Int32 colIndex

    The column index.

    Returns
    Type Description
    System.Boolean

    True if successful; False otherwise.

    QueryAcceptData(IDataObject, IGridDataObjectConsumer, GridQueryAcceptDataOptions)

    Queries the DataObject consumer if it knows how to handle the IDataObject.

    Declaration
    bool QueryAcceptData(IDataObject dataObject, IGridDataObjectConsumer consumer, GridQueryAcceptDataOptions options)
    Parameters
    Type Name Description
    System.Windows.Forms.IDataObject dataObject

    Provides data to be consumed.

    IGridDataObjectConsumer consumer

    Another consumer that is capable of reading the data. Might be NULL.

    GridQueryAcceptDataOptions options

    Reserved for future use.

    Returns
    Type Description
    System.Boolean

    True if this consumer is able to read the data from dataObject.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved