menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IGridModelDataProvider - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IGridModelDataProvider

    Provides a one-stop place to subscribe to row count, column count, and QueryCellInfo events.

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

    You should implement IGridModelDataProvider if you want to receive QueryRowCount, QueryColCount, QueryCellInfo, and SaveCellInfo events.

    The methods in this interface are called before the named events are raised and thus give you a chance to control the events behavior before other subscribers can handle it.

    You should assign a reference of your object to DataProvider in order to receive the method calls.

    Methods

    NameToColIndex(String)

    Returns the column index for a column that matches a given name.

    Declaration
    int NameToColIndex(string name)
    Parameters
    Type Name Description
    System.String name

    The name of the field to be matched.

    Returns
    Type Description
    System.Int32

    The column index in the grid; -1 if not found.

    NameToRowIndex(String)

    Returns the row index for a row that matches a given name.

    Declaration
    int NameToRowIndex(string name)
    Parameters
    Type Name Description
    System.String name

    The name of the row to be matched.

    Returns
    Type Description
    System.Int32

    The row index in the grid; -1 if not found.

    QueryCellInfo(GridQueryCellInfoEventArgs)

    Method handler for the QueryCellInfo event.

    Declaration
    void QueryCellInfo(GridQueryCellInfoEventArgs e)
    Parameters
    Type Name Description
    GridQueryCellInfoEventArgs e

    An GridQueryCellInfoEventArgs that contains the event data.

    QueryColCount(GridRowColCountEventArgs)

    Method handler for the QueryColCount event.

    Declaration
    void QueryColCount(GridRowColCountEventArgs e)
    Parameters
    Type Name Description
    GridRowColCountEventArgs e

    An GridRowColCountEventArgs that contains the event data.

    QueryRowCount(GridRowColCountEventArgs)

    Method handler for the QueryRowCount event.

    Declaration
    void QueryRowCount(GridRowColCountEventArgs e)
    Parameters
    Type Name Description
    GridRowColCountEventArgs e

    An GridRowColCountEventArgs that contains the event data.

    SaveCellInfo(GridSaveCellInfoEventArgs)

    Method handler for the SaveCellInfo event.

    Declaration
    void SaveCellInfo(GridSaveCellInfoEventArgs e)
    Parameters
    Type Name Description
    GridSaveCellInfoEventArgs e

    An GridSaveCellInfoEventArgs that contains the event data.

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