FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / C1FlexGridBase Class / SetUnboundValue Event

In This Topic
    SetUnboundValue Event (C1FlexGridBase)
    In This Topic
    Fires when the grid needs to store data in an unbound cell.
    Syntax
    'Declaration
     
    
    Public Event SetUnboundValue As UnboundValueEventHandler
    public event UnboundValueEventHandler SetUnboundValue
    Event Data

    The event handler receives an argument of type UnboundValueEventArgs containing data related to this event. The following UnboundValueEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets the column index for the cell that has an unbound value.  
    Gets the row index for the cell that has an unbound value.  
    Gets or sets the unbound value that should be displayed in the cell.  
    Remarks

    This event fires in bound mode when the grid contains unbound columns. Unbound columns are columns that have the Name property set to values that do not map to columns in the data source. The information in unbound columns must be provided by the application using the GetUnboundValue event.

    In most cases, unbound columns are read-only, and you don't need to handle this event. However, if a value is assigned to an unbound cell, either through editing or programmatically, the grid fires this event to allow the application to store the value using whatever mechanism is appropriate.

    See Also