FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGrid Class / SetData Method / SetData(CellRange,Object,Boolean) Method
CellRange that specifies the cells that will be assigned a new value.
Value that will be assigned to all cells in the range.
Whether the value should be converted to the column's data type.

In This Topic
    SetData(CellRange,Object,Boolean) Method
    In This Topic
    Assigns a value to a range of cells.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function SetData( _
       ByVal rg As CellRange, _
       ByVal value As Object, _
       ByVal coerce As Boolean _
    ) As Boolean
    public virtual bool SetData( 
       CellRange rg,
       object value,
       bool coerce
    )

    Parameters

    rg
    CellRange that specifies the cells that will be assigned a new value.
    value
    Value that will be assigned to all cells in the range.
    coerce
    Whether the value should be converted to the column's data type.

    Return Value

    True if the value was assigned to all cells in the destination range.
    See Also