Spread for ASP.NET 11 Product Documentation
GetModelColumnFromViewColumn Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetModelColumnFromViewColumn Method
Column index
Gets the index in the model for the specified column.
Syntax
'Declaration
 
Public Function GetModelColumnFromViewColumn( _
   ByVal column As Integer _
) As Integer
'Usage
 
Dim instance As SheetView
Dim column As Integer
Dim value As Integer
 
value = instance.GetModelColumnFromViewColumn(column)
public int GetModelColumnFromViewColumn( 
   int column
)

Parameters

column
Column index

Return Value

Integer column index for the original model corresponding to the specified sheet column
Example
This example returns the index for the specified column.
private void FpSpread1ChildViewCreated(object sender, FarPoint.Web.Spread.CreateChildViewEventArgs e)
{
      FarPoint.Web.Spread.SheetView sv;
      sv = e.SheetView;
      int i;
      i = sv.GetModelColumnFromViewColumn(1);
      Response.Write("The index in the model for the specified column is " + i.ToString());
}
Private Sub FpSpread1ChildViewCreated(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.CreateChildViewEventArgs) Handles
FpSpread1.ChildViewCreated
      Dim sv As FarPoint.Web.Spread.SheetView
      Dim i As Integer
      sv = e.SheetView
      i = sv.GetModelColumnFromViewColumn(1)
      Response.Write("The index in the model for the specified column is " & i.ToString())
End Sub
See Also

Reference

SheetView Class
SheetView Members