ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.8 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / Item Property

In This Topic
    Item Property (C1FlexPivotGrid)
    In This Topic
    Gets or sets the data in a grid cell.
    Overload List
    OverloadDescription
    Gets or sets the data in a grid cell. (Inherited from C1.Win.C1FlexGrid.C1FlexGridBase)
    Gets or sets the data in a grid cell. (Inherited from C1.Win.C1FlexGrid.C1FlexGridBase)
    Remarks

    This is one of the indexers you can use to get or set the data stored in grid cells.

    You can index cells using the row and column indices or using the row index and column name.

    Using integer indices is more efficient, because the grid doesn't have to look up the column. Using column names is more flexible, because references remain valid even if the user moves columns to a new position.

    When assigning a value to a cell, the grid tries to convert it into the type specified for the column (see the C1.Win.C1FlexGrid.RowCol.DataType property). If the grid can't convert the value, it fires the C1.Win.C1FlexGrid.C1FlexGridBase.GridError event and the cell retains its original value.

    Example
    The example below creates a column and assigns it a name, then sets the value of a cell using the column index and retrieves the value using the column name:
    See Also