FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / C1FlexGridBase Class / GetData Method / GetData(Int32,Int32) Method
Row index.
Column index.

In This Topic
    GetData(Int32,Int32) Method
    In This Topic
    Gets the value of a grid cell.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function GetData( _
       ByVal row As Integer, _
       ByVal col As Integer _
    ) As Object
    public virtual object GetData( 
       int row,
       int col
    )

    Parameters

    row
    Row index.
    col
    Column index.

    Return Value

    The value of the cell.
    Remarks

    The GetData(Int32,Int32) method returns the raw data stored in a specific grid cell. It is equivalent to using the grid's indexer. For example:

    object foo = flex.GetData(1, 1); object bar = flex[1, 1]; // same thing

    The data displayed on the grid might be different from the raw data, depending on the setting of the RowCol.Format and RowCol.DataMap properties. To obtain the display value (which is always a string), use the GetDataDisplay(Int32,Int32) method instead.

    See Also