Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / SetModelColumnForViewColumn Method
Column index in the sheet
Column index in the data model


In This Topic
    SetModelColumnForViewColumn Method
    In This Topic
    Sets the column index in the data model that corresponds to the specified column index in the sheet.
    Syntax
    'Declaration
     
    
    Public Overridable Function SetModelColumnForViewColumn( _
       ByVal viewColumn As Integer, _
       ByVal modelColumn As Integer _
    ) As Integer
    'Usage
     
    
    Dim instance As SheetView
    Dim viewColumn As Integer
    Dim modelColumn As Integer
    Dim value As Integer
     
    value = instance.SetModelColumnForViewColumn(viewColumn, modelColumn)
    public virtual int SetModelColumnForViewColumn( 
       int viewColumn,
       int modelColumn
    )

    Parameters

    viewColumn
    Column index in the sheet
    modelColumn
    Column index in the data model
    Exceptions
    ExceptionDescription
    Specified column in the sheet is out of range; must be between -1 and the total number of columns in the sheet
    Specified column in the model is out of range; must be between -1 and the total number of columns in the model
    See Also