FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid.Classic Namespace / C1FlexGridClassic Class / GetDataDisplay Method / GetDataDisplay(Int32,String,Image,CheckEnum) Method
Row index.
Column name.
Returns the image in the cell.
Returns the checkbox value in the cell.

In This Topic
    GetDataDisplay(Int32,String,Image,CheckEnum) Method
    In This Topic
    Gets the value in a grid cell, formatted as a string, and the image or checkbox in the cell.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function GetDataDisplay( _
       ByVal row As Integer, _
       ByVal colName As String, _
       ByRef img As Image, _
       ByRef chk As CheckEnum _
    ) As String
    public virtual string GetDataDisplay( 
       int row,
       string colName,
       out Image img,
       out CheckEnum chk
    )

    Parameters

    row
    Row index.
    colName
    Column name.
    img
    Returns the image in the cell.
    chk
    Returns the checkbox value in the cell.

    Return Value

    A string containing the data displayed in the given grid cell.
    Remarks

    This method provides a way to retrieve all the data that is displayed in a cell with a single call.

    The image returned in the img parameter may be an image assigned to the cell using the SetCellImage(Int32,String,Image) method, a mapped value obtained through an C1.Win.C1FlexGrid.RowCol.ImageMap, or an image stored as cell data (when the cell's C1.Win.C1FlexGrid.RowCol.DataType is set to Image).

    The C1.Win.C1FlexGrid.CheckEnum value returned in the chk parameter is the value returned by the GetCellCheck method.

    See Also