FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / C1FlexGridBase Class / SetData Method / SetData(CellRange,Object) Method
CellRange that specifies the cells that will be assigned a new value.
Value that will be assigned to all cells in the range.

In This Topic
    SetData(CellRange,Object) Method
    In This Topic
    Assigns a value to a range of cells, coercing the value into each cell's specified DataType.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function SetData( _
       ByVal rg As CellRange, _
       ByVal value As Object _
    ) As Boolean
    public virtual bool SetData( 
       CellRange rg,
       object value
    )

    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.

    Return Value

    True if the value was assigned to all cells in the destination range, false if the value could not be assigned to all cells in the range (usually because it could not be converted to the appropriate type).
    See Also